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;
///
///
/// The exception thrown when an attempt is made to edit a file that is checked into
/// a source control program.
///
///
[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 {
///
///
/// Initializes a that specifies that the checkout
/// was
/// canceled. This field is read-only.
///
///
public readonly static CheckoutException Canceled = new CheckoutException(SR.GetString(SR.CHECKOUTCanceled), NativeMethods.E_ABORT);
///
///
/// Initializes
/// a new instance of the class with no
/// associated message or
/// error code.
///
///
public CheckoutException() {
}
///
///
/// Initializes a new instance of the
/// class with the specified message.
///
///
public CheckoutException(string message)
: base(message) {
}
///
///
/// Initializes a new instance of the
/// class with the specified message and error code.
///
///
public CheckoutException(string message, int errorCode)
: base(message, errorCode) {
}
///
/// 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;
///
///
/// The exception thrown when an attempt is made to edit a file that is checked into
/// a source control program.
///
///
[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 {
///
///
/// Initializes a that specifies that the checkout
/// was
/// canceled. This field is read-only.
///
///
public readonly static CheckoutException Canceled = new CheckoutException(SR.GetString(SR.CHECKOUTCanceled), NativeMethods.E_ABORT);
///
///
/// Initializes
/// a new instance of the class with no
/// associated message or
/// error code.
///
///
public CheckoutException() {
}
///
///
/// Initializes a new instance of the
/// class with the specified message.
///
///
public CheckoutException(string message)
: base(message) {
}
///
///
/// Initializes a new instance of the
/// class with the specified message and error code.
///
///
public CheckoutException(string message, int errorCode)
: base(message, errorCode) {
}
///
/// 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
- ProcessHostMapPath.cs
- ClientEventManager.cs
- WindowsSpinner.cs
- SQLInt32Storage.cs
- SafeNativeMethods.cs
- SuppressMessageAttribute.cs
- UnsafeNativeMethods.cs
- PerfCounterSection.cs
- ServicesUtilities.cs
- FutureFactory.cs
- ThicknessAnimationUsingKeyFrames.cs
- SqlTransaction.cs
- DBConnectionString.cs
- CodeCommentStatementCollection.cs
- PauseStoryboard.cs
- PageContentCollection.cs
- RuleRef.cs
- WebPartConnectionsDisconnectVerb.cs
- GridLength.cs
- URLString.cs
- XmlQueryOutput.cs
- _HTTPDateParse.cs
- DataGridViewDataErrorEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- HandleRef.cs
- TextParagraphProperties.cs
- DynamicDataManager.cs
- InputEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- GridViewDeletedEventArgs.cs
- TimerElapsedEvenArgs.cs
- PartialToken.cs
- EmptyEnumerable.cs
- OutputCacheSettingsSection.cs
- SafeThreadHandle.cs
- GlobalProxySelection.cs
- ImportRequest.cs
- NonSerializedAttribute.cs
- Debug.cs
- StandardBindingElement.cs
- CodeRemoveEventStatement.cs
- categoryentry.cs
- SafeRegistryHandle.cs
- WebPartChrome.cs
- MenuEventArgs.cs
- SqlDuplicator.cs
- BooleanKeyFrameCollection.cs
- Variable.cs
- NumericUpDownAccelerationCollection.cs
- HtmlInputSubmit.cs
- HitTestDrawingContextWalker.cs
- RecipientInfo.cs
- AuthenticationConfig.cs
- Effect.cs
- TaskFormBase.cs
- ADMembershipProvider.cs
- SqlDataSourceParameterParser.cs
- DrawListViewItemEventArgs.cs
- CodeTypeReferenceCollection.cs
- SessionPageStatePersister.cs
- HtmlAnchor.cs
- Decorator.cs
- XmlStreamNodeWriter.cs
- AnnotationHighlightLayer.cs
- MessageEnumerator.cs
- MLangCodePageEncoding.cs
- WinFormsSecurity.cs
- QueryOpeningEnumerator.cs
- DataGridViewLinkCell.cs
- OracleColumn.cs
- SponsorHelper.cs
- TableAdapterManagerHelper.cs
- _HTTPDateParse.cs
- ColorTransformHelper.cs
- FormViewUpdateEventArgs.cs
- ScriptManagerProxy.cs
- Keywords.cs
- Delegate.cs
- ProcessRequestArgs.cs
- FontEmbeddingManager.cs
- OrderedDictionary.cs
- SymmetricKeyWrap.cs
- TextRangeProviderWrapper.cs
- MsmqBindingElementBase.cs
- COM2ComponentEditor.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ClientUtils.cs
- TrustExchangeException.cs
- TreeNodeMouseHoverEvent.cs
- SerialPort.cs
- IndexedDataBuffer.cs
- TypeGeneratedEventArgs.cs
- TypefaceCollection.cs
- FastPropertyAccessor.cs
- ComponentChangingEvent.cs
- DataGridItem.cs
- StateManager.cs
- SeekStoryboard.cs
- DtrList.cs
- OverloadGroupAttribute.cs