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
- AssemblyHash.cs
- Metafile.cs
- UnionCodeGroup.cs
- SourceItem.cs
- DocumentPageViewAutomationPeer.cs
- NGCPageContentCollectionSerializerAsync.cs
- odbcmetadatacolumnnames.cs
- ModelItemCollection.cs
- QueryCacheManager.cs
- LinqDataSource.cs
- CollectionCodeDomSerializer.cs
- xmlfixedPageInfo.cs
- MessageBox.cs
- DrawingDrawingContext.cs
- SqlParameterCollection.cs
- MostlySingletonList.cs
- MenuItem.cs
- RecommendedAsConfigurableAttribute.cs
- _ChunkParse.cs
- OdbcRowUpdatingEvent.cs
- UserNameServiceElement.cs
- LinkTarget.cs
- ApplicationId.cs
- ToolStripPanelRenderEventArgs.cs
- ResourceBinder.cs
- DataGridViewToolTip.cs
- login.cs
- PageCatalogPart.cs
- bidPrivateBase.cs
- SharedPersonalizationStateInfo.cs
- WindowsSysHeader.cs
- BaseParagraph.cs
- SystemException.cs
- TimelineClockCollection.cs
- ImageMap.cs
- LateBoundBitmapDecoder.cs
- BaseParser.cs
- NavigatorOutput.cs
- ISFClipboardData.cs
- CodeTypeMember.cs
- XmlObjectSerializerReadContextComplexJson.cs
- MetabaseSettings.cs
- CryptographicAttribute.cs
- QueryableFilterUserControl.cs
- ExpressionsCollectionConverter.cs
- ClientOperationFormatterProvider.cs
- SectionInformation.cs
- ObjectConverter.cs
- ExpressionBuilderContext.cs
- OracleConnectionFactory.cs
- RadioButtonPopupAdapter.cs
- Encoder.cs
- ParserStack.cs
- AsnEncodedData.cs
- TextModifierScope.cs
- TextPenaltyModule.cs
- UIElementParaClient.cs
- XmlSerializerNamespaces.cs
- AdCreatedEventArgs.cs
- RIPEMD160.cs
- WebPageTraceListener.cs
- UpdateInfo.cs
- ObjectQueryState.cs
- FileDialogCustomPlacesCollection.cs
- WebSysDescriptionAttribute.cs
- DataControlLinkButton.cs
- ControlCachePolicy.cs
- Mappings.cs
- Listbox.cs
- NativeMethods.cs
- AnnotationStore.cs
- DictionarySurrogate.cs
- WizardPanel.cs
- SequenceFullException.cs
- AdornerPresentationContext.cs
- ObjectReferenceStack.cs
- XmlReflectionMember.cs
- ChunkedMemoryStream.cs
- OperationGenerator.cs
- PeerCollaboration.cs
- SourceFileInfo.cs
- ComponentDispatcher.cs
- StackBuilderSink.cs
- HotSpot.cs
- BlockingCollection.cs
- ConfigurationSectionHelper.cs
- Quad.cs
- BuildProviderAppliesToAttribute.cs
- loginstatus.cs
- RawUIStateInputReport.cs
- HtmlForm.cs
- UIAgentMonitor.cs
- StrokeRenderer.cs
- BitmapEffectOutputConnector.cs
- GeometryModel3D.cs
- BasicHttpBindingCollectionElement.cs
- TextTreeDeleteContentUndoUnit.cs
- TypedTableBase.cs
- HttpClientCertificate.cs
- Canvas.cs