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
- DependencyPropertyKind.cs
- HebrewCalendar.cs
- CommonObjectSecurity.cs
- SortFieldComparer.cs
- HostingEnvironmentException.cs
- CalendarDataBindingHandler.cs
- ChildDocumentBlock.cs
- RSAOAEPKeyExchangeFormatter.cs
- PropertyBuilder.cs
- ReadOnlyPropertyMetadata.cs
- DbConnectionPoolGroupProviderInfo.cs
- Bidi.cs
- FileDialogCustomPlace.cs
- LiteralControl.cs
- EventSourceCreationData.cs
- AnnotationService.cs
- InstanceStore.cs
- SoapIgnoreAttribute.cs
- AuthenticationSection.cs
- SystemEvents.cs
- FrameworkObject.cs
- BooleanExpr.cs
- EntityAdapter.cs
- ping.cs
- CharUnicodeInfo.cs
- Substitution.cs
- StartUpEventArgs.cs
- ScopeCompiler.cs
- IApplicationTrustManager.cs
- PageThemeCodeDomTreeGenerator.cs
- SchemaTypeEmitter.cs
- TimeoutValidationAttribute.cs
- TableColumnCollectionInternal.cs
- HttpCapabilitiesSectionHandler.cs
- SerializationException.cs
- TreeNodeCollection.cs
- SystemIPGlobalStatistics.cs
- StorageFunctionMapping.cs
- SqlParameterCollection.cs
- CompilerWrapper.cs
- WindowsRebar.cs
- PrintingPermissionAttribute.cs
- CodePageUtils.cs
- XsdCachingReader.cs
- ComplexTypeEmitter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ConfigurationSectionCollection.cs
- WindowsFormsSynchronizationContext.cs
- ScriptReferenceBase.cs
- CodeDomExtensionMethods.cs
- PenContext.cs
- ConnectionStringsSection.cs
- GroupByQueryOperator.cs
- ChunkedMemoryStream.cs
- AddingNewEventArgs.cs
- FileNotFoundException.cs
- AQNBuilder.cs
- RequestUriProcessor.cs
- RegexCharClass.cs
- CLRBindingWorker.cs
- HealthMonitoringSectionHelper.cs
- XmlSchemaAttributeGroupRef.cs
- ObjectAnimationBase.cs
- ActiveDocumentEvent.cs
- EncryptedData.cs
- MediaSystem.cs
- CopyAttributesAction.cs
- ProviderConnectionPointCollection.cs
- RowVisual.cs
- SplineKeyFrames.cs
- JoinCqlBlock.cs
- SymmetricAlgorithm.cs
- AttachmentService.cs
- ColumnReorderedEventArgs.cs
- Operator.cs
- DataGridColumnCollection.cs
- AppSettingsExpressionBuilder.cs
- SecurityHeaderElementInferenceEngine.cs
- TreeWalkHelper.cs
- Mouse.cs
- ScriptingJsonSerializationSection.cs
- SHA256Managed.cs
- WebServiceTypeData.cs
- ColorConvertedBitmap.cs
- SharedPersonalizationStateInfo.cs
- LogSwitch.cs
- CanExecuteRoutedEventArgs.cs
- OperationCanceledException.cs
- DataMember.cs
- XmlHelper.cs
- AsyncResult.cs
- DrawingContextDrawingContextWalker.cs
- TextSelectionHelper.cs
- StateMachineAction.cs
- TextRunTypographyProperties.cs
- SmiEventSink_DeferedProcessing.cs
- PackWebRequestFactory.cs
- JavaScriptSerializer.cs
- CheckoutException.cs
- XPathNodeHelper.cs