Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IISMapPath.cs
- ColumnWidthChangedEvent.cs
- DelimitedListTraceListener.cs
- StrokeCollection.cs
- SqlNotificationEventArgs.cs
- TransactedBatchingElement.cs
- TraceSection.cs
- CustomWebEventKey.cs
- ListViewTableRow.cs
- DriveNotFoundException.cs
- ThumbButtonInfo.cs
- CalendarDay.cs
- XmlILAnnotation.cs
- MembershipPasswordException.cs
- XPathConvert.cs
- AuthenticationService.cs
- ExtendedPropertyDescriptor.cs
- HttpEncoderUtility.cs
- XPathQilFactory.cs
- RichListBox.cs
- AdPostCacheSubstitution.cs
- TableDetailsCollection.cs
- ProcessThreadCollection.cs
- GroupLabel.cs
- SqlDataSourceStatusEventArgs.cs
- PeerNode.cs
- ICspAsymmetricAlgorithm.cs
- WebPartVerbCollection.cs
- ControlParameter.cs
- SchemaTableOptionalColumn.cs
- TextEditorSpelling.cs
- PinnedBufferMemoryStream.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- Registry.cs
- SuspendDesigner.cs
- validationstate.cs
- _IPv4Address.cs
- FigureParaClient.cs
- TypeInfo.cs
- Configuration.cs
- DiscreteKeyFrames.cs
- TextSpan.cs
- WebPartEditorApplyVerb.cs
- ComponentCommands.cs
- HttpWebRequest.cs
- HashAlgorithm.cs
- SiteMembershipCondition.cs
- AttachmentCollection.cs
- ProcessHostMapPath.cs
- BitmapEffectOutputConnector.cs
- ScriptReferenceBase.cs
- TypeLoadException.cs
- WpfPayload.cs
- PathGeometry.cs
- GroupItemAutomationPeer.cs
- Char.cs
- EdmMember.cs
- IriParsingElement.cs
- RectIndependentAnimationStorage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DbBuffer.cs
- InputReportEventArgs.cs
- SimpleHandlerFactory.cs
- DllNotFoundException.cs
- CompiledIdentityConstraint.cs
- HyperLinkStyle.cs
- ImpersonationContext.cs
- Effect.cs
- BasicDesignerLoader.cs
- HttpListener.cs
- FixedSOMPageConstructor.cs
- ApplicationServicesHostFactory.cs
- Matrix.cs
- ServiceManager.cs
- ToolTipService.cs
- Figure.cs
- UniqueIdentifierService.cs
- ScriptBehaviorDescriptor.cs
- LiteralControl.cs
- EngineSite.cs
- LinkedResourceCollection.cs
- MouseActionConverter.cs
- LinkAreaEditor.cs
- TdsParserStateObject.cs
- InternalsVisibleToAttribute.cs
- ListBase.cs
- ConstructorBuilder.cs
- ErrorCodes.cs
- SqlUnionizer.cs
- PatternMatcher.cs
- DataGridViewRowPostPaintEventArgs.cs
- BlockingCollection.cs
- PriorityQueue.cs
- BinaryCommonClasses.cs
- AuthStoreRoleProvider.cs
- ThreadSafeList.cs
- FrameworkContentElementAutomationPeer.cs
- XmlWriter.cs
- WebPartUtil.cs
- StylusPointPropertyId.cs