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
- DecoderExceptionFallback.cs
- UrlPropertyAttribute.cs
- InputProcessorProfiles.cs
- MaskDesignerDialog.cs
- DeviceSpecificDesigner.cs
- SystemSounds.cs
- ChannelManager.cs
- ColorAnimation.cs
- DataRecordObjectView.cs
- ColumnBinding.cs
- AccessViolationException.cs
- EntityParameter.cs
- PerspectiveCamera.cs
- ImageDrawing.cs
- FileEnumerator.cs
- basenumberconverter.cs
- streamingZipPartStream.cs
- SmiXetterAccessMap.cs
- PermissionSetTriple.cs
- ShowExpandedMultiValueConverter.cs
- DesignerActionPanel.cs
- CollectionMarkupSerializer.cs
- TreeViewTemplateSelector.cs
- Wizard.cs
- TextLineResult.cs
- X509SecurityTokenAuthenticator.cs
- _RequestCacheProtocol.cs
- ValidateNames.cs
- DispatchWrapper.cs
- Msmq4PoisonHandler.cs
- RegexTree.cs
- HwndHostAutomationPeer.cs
- XmlSchemaAnnotated.cs
- WeakRefEnumerator.cs
- RankException.cs
- EventLogEntryCollection.cs
- TextTreeText.cs
- NetDataContractSerializer.cs
- StringStorage.cs
- MaterialCollection.cs
- SerializableTypeCodeDomSerializer.cs
- BitmapEffectInputData.cs
- SettingsBindableAttribute.cs
- MasterPageParser.cs
- EmptyEnumerator.cs
- PrimitiveRenderer.cs
- FontFamily.cs
- CSharpCodeProvider.cs
- SchemaReference.cs
- PropertyToken.cs
- LogRestartAreaEnumerator.cs
- KnownTypesProvider.cs
- NativeMethods.cs
- EventDescriptor.cs
- CompositeFontFamily.cs
- MsmqBindingElementBase.cs
- WebEventCodes.cs
- PrtCap_Base.cs
- ColumnWidthChangingEvent.cs
- SqlFormatter.cs
- CmsUtils.cs
- FlowDocumentView.cs
- WaitForChangedResult.cs
- IntegrationExceptionEventArgs.cs
- SemanticBasicElement.cs
- Byte.cs
- _DisconnectOverlappedAsyncResult.cs
- QueryStringParameter.cs
- StagingAreaInputItem.cs
- OdbcFactory.cs
- PageThemeBuildProvider.cs
- AnyReturnReader.cs
- DragEvent.cs
- RSAProtectedConfigurationProvider.cs
- ToolStripArrowRenderEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlFunctions.cs
- XmlMtomReader.cs
- TimersDescriptionAttribute.cs
- HTTPNotFoundHandler.cs
- TransactionManager.cs
- AspNetSynchronizationContext.cs
- TCEAdapterGenerator.cs
- DataGridColumnDropSeparator.cs
- BrowserPolicyValidator.cs
- DetailsViewRowCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- RepeatBehavior.cs
- DataChangedEventManager.cs
- TemplateParser.cs
- RTLAwareMessageBox.cs
- MemberDomainMap.cs
- ObjectDataProvider.cs
- RenderData.cs
- XmlWhitespace.cs
- Content.cs
- ObjectQueryProvider.cs
- MetadataProperty.cs
- XPathSingletonIterator.cs
- MarkupExtensionSerializer.cs