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
- DefaultDialogButtons.cs
- GifBitmapDecoder.cs
- Object.cs
- ButtonAutomationPeer.cs
- TypeDescriptor.cs
- Section.cs
- UriTemplateClientFormatter.cs
- GZipStream.cs
- SqlTypeConverter.cs
- TemplateKey.cs
- DesignerTransactionCloseEvent.cs
- BasicBrowserDialog.cs
- InvariantComparer.cs
- GridViewColumnHeaderAutomationPeer.cs
- CommandField.cs
- Line.cs
- VideoDrawing.cs
- FixedStringLookup.cs
- SHA256Managed.cs
- UpdateExpressionVisitor.cs
- unitconverter.cs
- Resources.Designer.cs
- DataPointer.cs
- Baml2006ReaderSettings.cs
- DataBoundLiteralControl.cs
- CriticalFinalizerObject.cs
- XmlNotation.cs
- StackOverflowException.cs
- DataSetSchema.cs
- Vector3DCollectionConverter.cs
- NativeMethods.cs
- CSharpCodeProvider.cs
- SessionEndedEventArgs.cs
- ButtonBase.cs
- VScrollBar.cs
- DisposableCollectionWrapper.cs
- GCHandleCookieTable.cs
- _FtpControlStream.cs
- ParenthesizePropertyNameAttribute.cs
- ToolStripSystemRenderer.cs
- ApplicationTrust.cs
- DesignerTransactionCloseEvent.cs
- StopStoryboard.cs
- PersonalizationProvider.cs
- ReachPageContentSerializerAsync.cs
- ReflectTypeDescriptionProvider.cs
- __Error.cs
- ObjectStorage.cs
- MarkupExtensionReturnTypeAttribute.cs
- MemberListBinding.cs
- UniformGrid.cs
- VScrollProperties.cs
- PageSettings.cs
- CacheAxisQuery.cs
- WsrmTraceRecord.cs
- LocalizableAttribute.cs
- CodePropertyReferenceExpression.cs
- StdValidatorsAndConverters.cs
- HwndHost.cs
- ResourcesChangeInfo.cs
- AppDomain.cs
- DrawListViewItemEventArgs.cs
- EnumValAlphaComparer.cs
- BaseProcessor.cs
- ObjectDataSourceMethodEventArgs.cs
- SecurityTokenResolver.cs
- EmptyEnumerator.cs
- Subtree.cs
- ThreadPool.cs
- login.cs
- SqlDataSource.cs
- LineProperties.cs
- TextEditorMouse.cs
- SqlUDTStorage.cs
- CompilerGlobalScopeAttribute.cs
- _LocalDataStore.cs
- StylusOverProperty.cs
- NameValuePair.cs
- QualifiedCellIdBoolean.cs
- HtmlTextBoxAdapter.cs
- DragDeltaEventArgs.cs
- Timeline.cs
- TextRangeAdaptor.cs
- DetailsView.cs
- WindowsFormsHostAutomationPeer.cs
- TimeoutException.cs
- HttpStreamMessageEncoderFactory.cs
- XPathNavigatorReader.cs
- SQLSingleStorage.cs
- ValueProviderWrapper.cs
- InternalPermissions.cs
- AnonymousIdentificationSection.cs
- FieldInfo.cs
- BookmarkScopeInfo.cs
- ConfigXmlCDataSection.cs
- WhitespaceRuleLookup.cs
- StringFormat.cs
- GridViewPageEventArgs.cs
- WindowsListViewGroupHelper.cs
- JournalEntry.cs