Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Timer.cs
- NullRuntimeConfig.cs
- KeyGestureValueSerializer.cs
- FlowchartStart.xaml.cs
- HttpCookiesSection.cs
- Transactions.cs
- SqlProviderManifest.cs
- SerialPinChanges.cs
- PublishLicense.cs
- ObjectReaderCompiler.cs
- WebControlAdapter.cs
- ElementsClipboardData.cs
- FreezableOperations.cs
- KeyValueConfigurationElement.cs
- Transform3D.cs
- TypeToStringValueConverter.cs
- FlowDocumentPaginator.cs
- DefaultPropertyAttribute.cs
- XmlUnspecifiedAttribute.cs
- TemplateBindingExtension.cs
- CasesDictionary.cs
- SymLanguageVendor.cs
- Geometry3D.cs
- SelectorItemAutomationPeer.cs
- Soap12ProtocolReflector.cs
- DataGridViewCell.cs
- EventProviderWriter.cs
- SqlGatherConsumedAliases.cs
- HostAdapter.cs
- ObjectListItemCollection.cs
- LayoutSettings.cs
- SortedDictionary.cs
- AttributeEmitter.cs
- CodeLinePragma.cs
- AddressingProperty.cs
- FloaterBaseParaClient.cs
- SubordinateTransaction.cs
- DateTimeConverter2.cs
- ProvidePropertyAttribute.cs
- ConnectionPointCookie.cs
- UntypedNullExpression.cs
- QilXmlWriter.cs
- CodeBinaryOperatorExpression.cs
- ScriptResourceHandler.cs
- Array.cs
- PointHitTestResult.cs
- CodeTypeReferenceCollection.cs
- _OSSOCK.cs
- XmlSchemaSimpleContentExtension.cs
- PkcsUtils.cs
- BCLDebug.cs
- SynchronizedDispatch.cs
- Baml2006SchemaContext.cs
- ContextMarshalException.cs
- ControlFilterExpression.cs
- ArgumentException.cs
- CommandDevice.cs
- DrawItemEvent.cs
- StructuralCache.cs
- IconBitmapDecoder.cs
- ToolStripItemClickedEventArgs.cs
- SqlUDTStorage.cs
- LocalValueEnumerator.cs
- RectAnimationClockResource.cs
- LocatorPartList.cs
- TextChangedEventArgs.cs
- RoleManagerEventArgs.cs
- SortQuery.cs
- Currency.cs
- BinaryFormatterWriter.cs
- CellParaClient.cs
- DeviceContexts.cs
- SpellerError.cs
- SerializationStore.cs
- JsonByteArrayDataContract.cs
- SafeNativeMethods.cs
- AuthenticatedStream.cs
- SubMenuStyle.cs
- SerializableTypeCodeDomSerializer.cs
- FileSystemInfo.cs
- RegistryPermission.cs
- MetadataPropertyvalue.cs
- RemotingHelper.cs
- CommandValueSerializer.cs
- PersianCalendar.cs
- Matrix3D.cs
- Tokenizer.cs
- HttpHeaderCollection.cs
- TileModeValidation.cs
- CustomMenuItemCollection.cs
- InputScopeManager.cs
- EventToken.cs
- XsdDuration.cs
- ObjectCacheSettings.cs
- DbConnectionStringBuilder.cs
- StateWorkerRequest.cs
- MetadataItemCollectionFactory.cs
- DataGridViewColumnHeaderCell.cs
- StandardOleMarshalObject.cs
- CommunicationObjectManager.cs