Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SecurityCriticalDataForSet.cs
- UnsafeNativeMethodsCLR.cs
- TimeoutException.cs
- PackageDigitalSignature.cs
- CodeStatementCollection.cs
- TextControl.cs
- StandardOleMarshalObject.cs
- RelationalExpressions.cs
- FileUtil.cs
- GeometryGroup.cs
- URLIdentityPermission.cs
- Literal.cs
- WebPartConnectionsEventArgs.cs
- DataViewListener.cs
- AccessText.cs
- EmptyReadOnlyDictionaryInternal.cs
- WebPartDisplayModeCollection.cs
- Maps.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PathSegment.cs
- DurationConverter.cs
- SvcMapFile.cs
- ListParagraph.cs
- IisTraceWebEventProvider.cs
- LoginDesigner.cs
- HtmlInputImage.cs
- ToolstripProfessionalRenderer.cs
- Listener.cs
- HttpProtocolImporter.cs
- XmlSchemaSimpleContent.cs
- SqlXmlStorage.cs
- WSUtilitySpecificationVersion.cs
- DefaultPropertyAttribute.cs
- UnsafeNativeMethods.cs
- InvalidEnumArgumentException.cs
- BigInt.cs
- VSWCFServiceContractGenerator.cs
- HttpModuleAction.cs
- RenamedEventArgs.cs
- EventLogQuery.cs
- SwitchExpression.cs
- ExecutionEngineException.cs
- RSAPKCS1SignatureFormatter.cs
- basenumberconverter.cs
- KeyMatchBuilder.cs
- DiagnosticStrings.cs
- QilLoop.cs
- TransformPatternIdentifiers.cs
- RoleBoolean.cs
- DrawingGroup.cs
- SkipStoryboardToFill.cs
- XPathNavigatorKeyComparer.cs
- ExecutedRoutedEventArgs.cs
- storepermission.cs
- InternalConfigSettingsFactory.cs
- ImageListImageEditor.cs
- HttpTransportManager.cs
- CompilationPass2Task.cs
- Trigger.cs
- SqlCommand.cs
- ObfuscateAssemblyAttribute.cs
- FileRecordSequence.cs
- ListViewUpdateEventArgs.cs
- Matrix.cs
- Atom10FormatterFactory.cs
- FlowDocumentPage.cs
- DataGridViewRow.cs
- SoapAttributes.cs
- HtmlTextArea.cs
- ObjectManager.cs
- GuidelineCollection.cs
- ChannelRequirements.cs
- WizardPanelChangingEventArgs.cs
- HostedHttpContext.cs
- ObjectHelper.cs
- MenuCommand.cs
- PaperSize.cs
- Form.cs
- MemoryMappedViewStream.cs
- UpdatePanel.cs
- ViewBase.cs
- MarkerProperties.cs
- RijndaelManaged.cs
- PropertyInfoSet.cs
- SR.cs
- FlowDocumentPage.cs
- SrgsElementList.cs
- VectorKeyFrameCollection.cs
- AncillaryOps.cs
- GlyphInfoList.cs
- UnsafeNativeMethods.cs
- CustomCategoryAttribute.cs
- RuntimeHelpers.cs
- BaseAddressPrefixFilterElementCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- ExpressionTextBox.xaml.cs
- InkPresenter.cs
- HashCryptoHandle.cs
- DocumentViewerAutomationPeer.cs
- DataGridClipboardCellContent.cs