Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / CheckoutException.cs / 1 / CheckoutException.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design { using Microsoft.Win32; using System; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2112:SecuredTypesShouldNotExposeFields")] // ReadOnly field - already shipped. [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] [Serializable] public class CheckoutException : ExternalException { ////// The exception thrown when an attempt is made to edit a file that is checked into /// a source control program. /// ////// public readonly static CheckoutException Canceled = new CheckoutException(SR.GetString(SR.CHECKOUTCanceled), NativeMethods.E_ABORT); ////// Initializes a ///that specifies that the checkout /// was /// canceled. This field is read-only. /// /// public CheckoutException() { } ////// Initializes /// a new instance of the ///class with no /// associated message or /// error code. /// /// public CheckoutException(string message) : base(message) { } ////// Initializes a new instance of the ////// class with the specified message. /// /// public CheckoutException(string message, int errorCode) : base(message, errorCode) { } ////// Initializes a new instance of the ////// class with the specified message and error code. /// /// Need this constructor since Exception implements ISerializable. We don't have any fields, /// so just forward this to base. /// protected CheckoutException(SerializationInfo info, StreamingContext context) : base(info, context) { } ////// Initializes a new instance of the Exception class with a specified error message and a /// reference to the inner exception that is the cause of this exception. /// FxCop CA1032: Multiple constructors are required to correctly implement a custom exception. /// public CheckoutException( string message, Exception innerException ) : base(message, innerException) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design { using Microsoft.Win32; using System; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2112:SecuredTypesShouldNotExposeFields")] // ReadOnly field - already shipped. [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] [Serializable] public class CheckoutException : ExternalException { ////// The exception thrown when an attempt is made to edit a file that is checked into /// a source control program. /// ////// public readonly static CheckoutException Canceled = new CheckoutException(SR.GetString(SR.CHECKOUTCanceled), NativeMethods.E_ABORT); ////// Initializes a ///that specifies that the checkout /// was /// canceled. This field is read-only. /// /// public CheckoutException() { } ////// Initializes /// a new instance of the ///class with no /// associated message or /// error code. /// /// public CheckoutException(string message) : base(message) { } ////// Initializes a new instance of the ////// class with the specified message. /// /// public CheckoutException(string message, int errorCode) : base(message, errorCode) { } ////// Initializes a new instance of the ////// class with the specified message and error code. /// /// Need this constructor since Exception implements ISerializable. We don't have any fields, /// so just forward this to base. /// protected CheckoutException(SerializationInfo info, StreamingContext context) : base(info, context) { } ////// Initializes a new instance of the Exception class with a specified error message and a /// reference to the inner exception that is the cause of this exception. /// FxCop CA1032: Multiple constructors are required to correctly implement a custom exception. /// public CheckoutException( string message, Exception innerException ) : base(message, innerException) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HitTestDrawingContextWalker.cs
- Dictionary.cs
- TransactionInformation.cs
- UpdateRecord.cs
- NativeStructs.cs
- SqlComparer.cs
- BinHexEncoder.cs
- FrameworkElementFactory.cs
- SerializationUtility.cs
- ViewGenerator.cs
- VarInfo.cs
- ServiceXNameTypeConverter.cs
- DependencyPropertyConverter.cs
- WebPartUtil.cs
- HandleValueEditor.cs
- SqlTypesSchemaImporter.cs
- ListDictionaryInternal.cs
- DocumentSequence.cs
- KernelTypeValidation.cs
- UrlMappingCollection.cs
- XhtmlTextWriter.cs
- FileDataSourceCache.cs
- X509InitiatorCertificateClientElement.cs
- PathStreamGeometryContext.cs
- Int32CAMarshaler.cs
- EventMappingSettings.cs
- ImportContext.cs
- DataBindingCollection.cs
- CSharpCodeProvider.cs
- ObfuscateAssemblyAttribute.cs
- MarkupExtensionParser.cs
- OutputCacheEntry.cs
- ButtonStandardAdapter.cs
- MetadataArtifactLoaderCompositeResource.cs
- MediaContextNotificationWindow.cs
- XmlSchemaComplexContent.cs
- EnvelopedSignatureTransform.cs
- BoolExpressionVisitors.cs
- ResXResourceWriter.cs
- XNodeNavigator.cs
- RangeValueProviderWrapper.cs
- WCFModelStrings.Designer.cs
- SiteOfOriginPart.cs
- sqlinternaltransaction.cs
- ReservationCollection.cs
- XmlEnumAttribute.cs
- ColorKeyFrameCollection.cs
- EventLogSession.cs
- FaultCallbackWrapper.cs
- UrlMappingCollection.cs
- ToolStripItemClickedEventArgs.cs
- OSEnvironmentHelper.cs
- SerializerWriterEventHandlers.cs
- COM2Properties.cs
- SoapException.cs
- OledbConnectionStringbuilder.cs
- TwoPhaseCommitProxy.cs
- EntityDataSourceUtil.cs
- SqlDataSourceStatusEventArgs.cs
- SchemaAttDef.cs
- FamilyMapCollection.cs
- EntryPointNotFoundException.cs
- XmlSchemaSimpleType.cs
- DispatcherTimer.cs
- DataGridViewRowPrePaintEventArgs.cs
- ManagementObject.cs
- Speller.cs
- PrimitiveList.cs
- Menu.cs
- HtmlToClrEventProxy.cs
- DocumentViewerBase.cs
- ConnectionManagementElement.cs
- NameValueFileSectionHandler.cs
- GPRECTF.cs
- TypeConverterHelper.cs
- ResetableIterator.cs
- TextOutput.cs
- AppDomainAttributes.cs
- DetailsViewDeleteEventArgs.cs
- AsyncStreamReader.cs
- Operators.cs
- OLEDB_Util.cs
- DbReferenceCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- TextRenderingModeValidation.cs
- UIElementAutomationPeer.cs
- BaseComponentEditor.cs
- WebCategoryAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- PropertyConverter.cs
- DataAdapter.cs
- PageSettings.cs
- DbModificationCommandTree.cs
- ResourceManager.cs
- AnimationTimeline.cs
- StronglyTypedResourceBuilder.cs
- WeakReferenceKey.cs
- RegistryPermission.cs
- Section.cs
- XmlSchemaObjectCollection.cs