Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Management / Automation / Exceptions.cs / 1305376 / Exceptions.cs
using System;
using System.Collections;
using System.Text;
using System.Runtime.Serialization;
namespace System.Management.Instrumentation
{
#region Instrumentation exceptions
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstrumentationBaseException : Exception
{
public InstrumentationBaseException()
: base()
{
}
public InstrumentationBaseException(string message)
: base(message)
{
}
public InstrumentationBaseException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstrumentationBaseException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstrumentationException:InstrumentationBaseException
{
public InstrumentationException()
: base()
{
}
public InstrumentationException(string message)
: base(message)
{
}
public InstrumentationException(Exception innerException)
: base(null, innerException)
{
}
public InstrumentationException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstrumentationException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstanceNotFoundException : InstrumentationException
{
public InstanceNotFoundException()
: base()
{
}
public InstanceNotFoundException(string message)
: base(message)
{
}
public InstanceNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstanceNotFoundException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
#endregion
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections;
using System.Text;
using System.Runtime.Serialization;
namespace System.Management.Instrumentation
{
#region Instrumentation exceptions
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstrumentationBaseException : Exception
{
public InstrumentationBaseException()
: base()
{
}
public InstrumentationBaseException(string message)
: base(message)
{
}
public InstrumentationBaseException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstrumentationBaseException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstrumentationException:InstrumentationBaseException
{
public InstrumentationException()
: base()
{
}
public InstrumentationException(string message)
: base(message)
{
}
public InstrumentationException(Exception innerException)
: base(null, innerException)
{
}
public InstrumentationException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstrumentationException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
[Serializable]
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public class InstanceNotFoundException : InstrumentationException
{
public InstanceNotFoundException()
: base()
{
}
public InstanceNotFoundException(string message)
: base(message)
{
}
public InstanceNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
protected InstanceNotFoundException(SerializationInfo info, StreamingContext context)
:base (info, context)
{
}
}
#endregion
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartsPersonalization.cs
- ToolStripDesigner.cs
- ApplicationTrust.cs
- DependencyPropertyValueSerializer.cs
- PanelStyle.cs
- TableColumn.cs
- BaseValidator.cs
- CommonObjectSecurity.cs
- HttpEncoderUtility.cs
- SettingsSavedEventArgs.cs
- ErrorFormatter.cs
- SecurityManager.cs
- StrongNameSignatureInformation.cs
- DataView.cs
- PropertyGridEditorPart.cs
- Switch.cs
- ImportedNamespaceContextItem.cs
- SystemWebExtensionsSectionGroup.cs
- DefaultParameterValueAttribute.cs
- autovalidator.cs
- SystemIcmpV4Statistics.cs
- HttpClientCertificate.cs
- Compiler.cs
- AnimationTimeline.cs
- ConfigurationElement.cs
- XamlContextStack.cs
- ProviderSettings.cs
- BitStack.cs
- LocalizedNameDescriptionPair.cs
- MsmqIntegrationBinding.cs
- CollectionDataContract.cs
- WebRequestModuleElementCollection.cs
- GenericTextProperties.cs
- UserControl.cs
- ProcessModelSection.cs
- ParserHooks.cs
- xml.cs
- CodeBlockBuilder.cs
- TraceUtils.cs
- OdbcCommand.cs
- ScriptServiceAttribute.cs
- MarkupExtensionParser.cs
- DataControlExtensions.cs
- WebHttpSecurityModeHelper.cs
- SafeNativeMethods.cs
- JsonWriterDelegator.cs
- OrderByExpression.cs
- StdValidatorsAndConverters.cs
- DecodeHelper.cs
- FileDialogCustomPlace.cs
- XamlVector3DCollectionSerializer.cs
- SortedList.cs
- SecUtil.cs
- TimeSpan.cs
- StylusButton.cs
- TypeLoadException.cs
- OutputScopeManager.cs
- AssemblyUtil.cs
- MetadataItemCollectionFactory.cs
- SendingRequestEventArgs.cs
- RichTextBoxConstants.cs
- _Connection.cs
- ResponseStream.cs
- CacheChildrenQuery.cs
- TableLayoutStyle.cs
- DependencyPropertyValueSerializer.cs
- DataTablePropertyDescriptor.cs
- ProfileParameter.cs
- CompilerParameters.cs
- GridItemProviderWrapper.cs
- EmptyElement.cs
- LockingPersistenceProvider.cs
- XmlElementAttributes.cs
- XmlQuerySequence.cs
- GridViewRowEventArgs.cs
- PointConverter.cs
- ImageListImageEditor.cs
- XmlQueryCardinality.cs
- EncodingInfo.cs
- TraceUtils.cs
- coordinatorfactory.cs
- ArrowControl.xaml.cs
- OverlappedAsyncResult.cs
- RemotingException.cs
- DoubleAnimationClockResource.cs
- infer.cs
- HttpSysSettings.cs
- CodeVariableDeclarationStatement.cs
- GetWinFXPath.cs
- SerTrace.cs
- MaterializeFromAtom.cs
- Axis.cs
- RouteParametersHelper.cs
- Gdiplus.cs
- CopyOfAction.cs
- XmlDataLoader.cs
- ProcessModuleCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- XmlProcessingInstruction.cs
- LockCookie.cs