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
- SqlXmlStorage.cs
- XpsFilter.cs
- Debug.cs
- LicenseException.cs
- XpsSerializationManager.cs
- TransactionCache.cs
- CodeDomSerializationProvider.cs
- Path.cs
- LassoHelper.cs
- ColumnWidthChangedEvent.cs
- StylusLogic.cs
- FlowDocumentScrollViewer.cs
- UserThread.cs
- SelectionRange.cs
- CaseStatementSlot.cs
- PolyBezierSegment.cs
- FileChangesMonitor.cs
- EncryptedHeader.cs
- ThumbAutomationPeer.cs
- IsolatedStorageFile.cs
- MimeMapping.cs
- PassportAuthentication.cs
- SoapRpcServiceAttribute.cs
- PackagePartCollection.cs
- BinHexDecoder.cs
- UrlPropertyAttribute.cs
- IntSecurity.cs
- FormsAuthenticationModule.cs
- StrictAndMessageFilter.cs
- TextProperties.cs
- DelegatingTypeDescriptionProvider.cs
- ListItemDetailViewAttribute.cs
- BuildProviderCollection.cs
- RootBuilder.cs
- BitmapEffect.cs
- Line.cs
- LineVisual.cs
- ValidationErrorEventArgs.cs
- XmlSchemaAll.cs
- ElapsedEventArgs.cs
- HtmlElementEventArgs.cs
- StylusEditingBehavior.cs
- BitArray.cs
- ClientBuildManager.cs
- NavigationWindow.cs
- PageAdapter.cs
- ipaddressinformationcollection.cs
- PathFigureCollection.cs
- ApplicationInfo.cs
- RowsCopiedEventArgs.cs
- typedescriptorpermission.cs
- BasicCellRelation.cs
- RC2.cs
- CollectionViewGroupInternal.cs
- M3DUtil.cs
- XmlElementAttributes.cs
- Type.cs
- IdentityManager.cs
- SamlSecurityToken.cs
- VectorConverter.cs
- SafeSecurityHelper.cs
- DeviceContext.cs
- ByteFacetDescriptionElement.cs
- DataGridViewRowEventArgs.cs
- PnrpPeerResolverElement.cs
- ProfileSection.cs
- GcSettings.cs
- RuleRefElement.cs
- XmlSerializerFactory.cs
- SByteStorage.cs
- ValidatorCollection.cs
- BitmapEffectGroup.cs
- StorageRoot.cs
- ConfigXmlComment.cs
- XmlEventCache.cs
- RegexTree.cs
- DataGridTableCollection.cs
- ToolBar.cs
- PropertyMapper.cs
- SessionPageStateSection.cs
- RealizedColumnsBlock.cs
- SecureUICommand.cs
- ParagraphVisual.cs
- recordstate.cs
- RemotingClientProxy.cs
- Operator.cs
- ParameterDataSourceExpression.cs
- XpsException.cs
- OutputWindow.cs
- LinkLabelLinkClickedEvent.cs
- OutputBuffer.cs
- TypeLibConverter.cs
- DBBindings.cs
- DataSourceListEditor.cs
- CompoundFileStreamReference.cs
- MsmqHostedTransportConfiguration.cs
- XamlTypeMapper.cs
- X509ChainElement.cs
- Help.cs
- TypefaceMap.cs