Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProfileGroupSettingsCollection.cs
- CapiSafeHandles.cs
- FlowLayoutSettings.cs
- UnwrappedTypesXmlSerializerManager.cs
- ModelItemCollectionImpl.cs
- SqlSelectStatement.cs
- Point3DCollectionConverter.cs
- ReadOnlyObservableCollection.cs
- Positioning.cs
- IInstanceTable.cs
- TableRowCollection.cs
- Thumb.cs
- Attributes.cs
- AnnotationDocumentPaginator.cs
- ObjectAnimationBase.cs
- HtmlInputCheckBox.cs
- XhtmlBasicImageAdapter.cs
- AsynchronousChannelMergeEnumerator.cs
- HttpBufferlessInputStream.cs
- SqlCacheDependencyDatabase.cs
- DateTimeOffsetStorage.cs
- NameValuePair.cs
- CustomAttributeBuilder.cs
- DragDrop.cs
- TrustManagerMoreInformation.cs
- XmlValueConverter.cs
- Double.cs
- DocumentXPathNavigator.cs
- RepeaterDataBoundAdapter.cs
- AppSettingsExpressionBuilder.cs
- XmlnsCache.cs
- PageContent.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- DataSetFieldSchema.cs
- ControlValuePropertyAttribute.cs
- _AutoWebProxyScriptHelper.cs
- base64Transforms.cs
- SmtpCommands.cs
- EntityDataSourceChangingEventArgs.cs
- TypeInformation.cs
- AsyncInvokeContext.cs
- EdmType.cs
- DecoderNLS.cs
- LockRecursionException.cs
- ExceptionTranslationTable.cs
- HwndKeyboardInputProvider.cs
- ResourceFallbackManager.cs
- OpenTypeLayoutCache.cs
- SecUtil.cs
- infer.cs
- Policy.cs
- XhtmlConformanceSection.cs
- StylusSystemGestureEventArgs.cs
- TypeForwardedToAttribute.cs
- newinstructionaction.cs
- Storyboard.cs
- ServiceMetadataBehavior.cs
- COM2FontConverter.cs
- CompoundFileReference.cs
- Point3DCollection.cs
- DispatcherObject.cs
- ADMembershipUser.cs
- SrgsRulesCollection.cs
- Accessors.cs
- InputLangChangeRequestEvent.cs
- Variable.cs
- Subtree.cs
- ExpressionPrinter.cs
- DetailsViewCommandEventArgs.cs
- Polygon.cs
- XmlHierarchyData.cs
- FontConverter.cs
- WebPart.cs
- TypeSource.cs
- ByteKeyFrameCollection.cs
- AuthorizationSection.cs
- FormsAuthenticationModule.cs
- TagPrefixAttribute.cs
- WeakReadOnlyCollection.cs
- RowToParametersTransformer.cs
- StateRuntime.cs
- SQLUtility.cs
- XmlNullResolver.cs
- CacheDependency.cs
- DesignerDataSchemaClass.cs
- ReliabilityContractAttribute.cs
- DependencyPropertyValueSerializer.cs
- HttpApplicationStateWrapper.cs
- DeploymentSectionCache.cs
- ApplicationSecurityInfo.cs
- Int64Converter.cs
- ProfileSection.cs
- EncryptedData.cs
- TableCell.cs
- PathData.cs
- ComponentDispatcherThread.cs
- ItemDragEvent.cs
- DurableEnlistmentState.cs
- SerializationFieldInfo.cs
- PrivateFontCollection.cs