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
- TableLayoutStyle.cs
- DataStreams.cs
- SingleConverter.cs
- Debug.cs
- Polyline.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- SoapEnumAttribute.cs
- ActivityStatusChangeEventArgs.cs
- ConfigurationPropertyCollection.cs
- ISO2022Encoding.cs
- TranslateTransform.cs
- XmlMapping.cs
- MessageHeader.cs
- Types.cs
- FacetValueContainer.cs
- CodeDirectoryCompiler.cs
- ObjectStateEntry.cs
- CompilerTypeWithParams.cs
- PathFigureCollection.cs
- ContourSegment.cs
- EntityCommand.cs
- ImageInfo.cs
- Int16Converter.cs
- FixedSOMTableRow.cs
- Highlights.cs
- BitmapSourceSafeMILHandle.cs
- SimplePropertyEntry.cs
- FileDialogCustomPlacesCollection.cs
- KeyEventArgs.cs
- _SSPISessionCache.cs
- AppDomainManager.cs
- DataGridColumnReorderingEventArgs.cs
- PointLightBase.cs
- XXXOnTypeBuilderInstantiation.cs
- CodeEventReferenceExpression.cs
- ExpandedWrapper.cs
- OracleBinary.cs
- GatewayDefinition.cs
- OSFeature.cs
- CLRBindingWorker.cs
- ManipulationStartedEventArgs.cs
- Typography.cs
- DoubleAnimationClockResource.cs
- StructuralCache.cs
- BuildProviderCollection.cs
- StrongNamePublicKeyBlob.cs
- QilGenerator.cs
- HashHelper.cs
- DataKeyArray.cs
- DefaultHttpHandler.cs
- CatalogZone.cs
- WorkflowApplicationCompletedException.cs
- DependencyObjectProvider.cs
- FtpCachePolicyElement.cs
- SpnegoTokenAuthenticator.cs
- Converter.cs
- Localizer.cs
- PropertyValueUIItem.cs
- CDSsyncETWBCLProvider.cs
- InvalidWMPVersionException.cs
- GridViewColumnHeaderAutomationPeer.cs
- VersionPair.cs
- ArrayWithOffset.cs
- ServicePointManagerElement.cs
- BaseParser.cs
- RequestStatusBarUpdateEventArgs.cs
- LambdaCompiler.ControlFlow.cs
- DbDataAdapter.cs
- CustomPopupPlacement.cs
- SingleStorage.cs
- TextShapeableCharacters.cs
- DispatcherExceptionFilterEventArgs.cs
- ContainerParaClient.cs
- JoinGraph.cs
- RepeatInfo.cs
- EnumCodeDomSerializer.cs
- EventRouteFactory.cs
- SecurityUtils.cs
- WebEvents.cs
- RadioButtonStandardAdapter.cs
- KnownTypesHelper.cs
- QueryTaskGroupState.cs
- ObjectQueryState.cs
- XmlChildEnumerator.cs
- TextBoxAutomationPeer.cs
- DataGridViewSelectedRowCollection.cs
- LineGeometry.cs
- XamlStackWriter.cs
- TransactionWaitAsyncResult.cs
- FileDialogCustomPlacesCollection.cs
- TypeDependencyAttribute.cs
- Enum.cs
- DialogResultConverter.cs
- IncrementalCompileAnalyzer.cs
- CultureNotFoundException.cs
- RemoteCryptoTokenProvider.cs
- XmlConvert.cs
- Hex.cs
- LineServicesRun.cs
- CqlLexer.cs