Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / CheckoutException.cs / 1305376 / 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
- ResourceProviderFactory.cs
- UidManager.cs
- TaskFileService.cs
- DataControlFieldsEditor.cs
- PermissionSetEnumerator.cs
- BitmapInitialize.cs
- XamlTemplateSerializer.cs
- StringFormat.cs
- RtfControlWordInfo.cs
- TCPClient.cs
- CryptoKeySecurity.cs
- SerializationSectionGroup.cs
- ExpandCollapsePattern.cs
- XmlWhitespace.cs
- Rect3DValueSerializer.cs
- NextPreviousPagerField.cs
- EditingScopeUndoUnit.cs
- HashStream.cs
- AttributeUsageAttribute.cs
- CompilerState.cs
- RegexWorker.cs
- TimeZone.cs
- storepermissionattribute.cs
- WeakReferenceKey.cs
- UnsafeNativeMethods.cs
- PathSegment.cs
- KnownTypesHelper.cs
- MimeMapping.cs
- documentsequencetextview.cs
- CryptoApi.cs
- WebPartMenuStyle.cs
- XmlName.cs
- TraceListeners.cs
- DataObject.cs
- ModuleBuilderData.cs
- EdmRelationshipRoleAttribute.cs
- TextRenderer.cs
- GridLengthConverter.cs
- TextDecorationCollection.cs
- XmlElement.cs
- ScaleTransform3D.cs
- TypeUtils.cs
- RowTypePropertyElement.cs
- AttributeUsageAttribute.cs
- ModuleBuilderData.cs
- RuntimeCompatibilityAttribute.cs
- COM2ExtendedTypeConverter.cs
- ContentPropertyAttribute.cs
- XmlNavigatorFilter.cs
- ObfuscationAttribute.cs
- RowParagraph.cs
- OverrideMode.cs
- ItemCheckedEvent.cs
- DataGridViewElement.cs
- DescriptionAttribute.cs
- XamlReader.cs
- PolyQuadraticBezierSegment.cs
- QilInvoke.cs
- ComboBoxAutomationPeer.cs
- TypedElement.cs
- LinearKeyFrames.cs
- HMACSHA1.cs
- ProcessHostServerConfig.cs
- HandlerBase.cs
- Events.cs
- ExtensionDataReader.cs
- TextBoxBase.cs
- ListSourceHelper.cs
- ComboBoxItem.cs
- SafeThemeHandle.cs
- SqlCachedBuffer.cs
- Vector3DCollection.cs
- DurationConverter.cs
- DrawingCollection.cs
- BitmapDecoder.cs
- TransformConverter.cs
- SystemIPInterfaceStatistics.cs
- CharacterBuffer.cs
- LicenseContext.cs
- TableHeaderCell.cs
- CalendarData.cs
- TypeViewSchema.cs
- Validator.cs
- ActivityCollectionMarkupSerializer.cs
- Constants.cs
- KeyNotFoundException.cs
- SupportsEventValidationAttribute.cs
- TrackingMemoryStreamFactory.cs
- CompilerState.cs
- SessionEndingCancelEventArgs.cs
- DateTimeFormatInfo.cs
- LinearGradientBrush.cs
- FixedSOMImage.cs
- ColorMap.cs
- CacheMode.cs
- OleDbCommand.cs
- ProxyWebPart.cs
- ListBoxItem.cs
- LassoHelper.cs
- CompositeTypefaceMetrics.cs