Code:
/ FX-1434 / FX-1434 / 1.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
- ObjectDataSource.cs
- FixUp.cs
- WebRequest.cs
- ListViewItem.cs
- IERequestCache.cs
- ServiceDescription.cs
- PageThemeCodeDomTreeGenerator.cs
- EnumMemberAttribute.cs
- AuthStoreRoleProvider.cs
- RectAnimationClockResource.cs
- MetadataException.cs
- SymLanguageVendor.cs
- HScrollBar.cs
- FixedTextSelectionProcessor.cs
- validationstate.cs
- BezierSegment.cs
- ProcessHostServerConfig.cs
- TypeDelegator.cs
- CompiledRegexRunnerFactory.cs
- StringToken.cs
- SqlGatherProducedAliases.cs
- RecommendedAsConfigurableAttribute.cs
- DbConnectionStringBuilder.cs
- HtmlElement.cs
- PrePrepareMethodAttribute.cs
- ComponentChangedEvent.cs
- DesigntimeLicenseContextSerializer.cs
- SchemaTypeEmitter.cs
- ConnectionInterfaceCollection.cs
- StorageAssociationSetMapping.cs
- StringFreezingAttribute.cs
- IncomingWebResponseContext.cs
- SpeechUI.cs
- TextProperties.cs
- InvalidAsynchronousStateException.cs
- NonVisualControlAttribute.cs
- BindableTemplateBuilder.cs
- ProcessHostFactoryHelper.cs
- RMPermissions.cs
- HierarchicalDataSourceDesigner.cs
- Grant.cs
- WebReferencesBuildProvider.cs
- WebRequest.cs
- Assembly.cs
- PlainXmlDeserializer.cs
- ArrayElementGridEntry.cs
- GroupByQueryOperator.cs
- Operator.cs
- TransformPattern.cs
- DESCryptoServiceProvider.cs
- TypeResolver.cs
- UserMapPath.cs
- Renderer.cs
- ExpressionLexer.cs
- ProjectedSlot.cs
- ColumnClickEvent.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DecoderFallbackWithFailureFlag.cs
- UserInitiatedNavigationPermission.cs
- ResourceType.cs
- CancelEventArgs.cs
- HttpWrapper.cs
- FontEmbeddingManager.cs
- ApplicationActivator.cs
- DataListCommandEventArgs.cs
- ObjectNavigationPropertyMapping.cs
- Vector3DCollectionConverter.cs
- TraceHandler.cs
- DesignerDataParameter.cs
- CodeSubDirectoriesCollection.cs
- GlyphRun.cs
- WebPartConnectionsEventArgs.cs
- ScrollBar.cs
- SiteMapNode.cs
- Freezable.cs
- TraceInternal.cs
- HttpConfigurationContext.cs
- InputManager.cs
- CacheManager.cs
- EntitySetBaseCollection.cs
- XmlSchemaSet.cs
- PropertyContainer.cs
- LineUtil.cs
- ProjectedSlot.cs
- EventDescriptor.cs
- MethodCallTranslator.cs
- EditorPartChrome.cs
- GcSettings.cs
- NativeMethods.cs
- SingleObjectCollection.cs
- CollectionMarkupSerializer.cs
- PageSettings.cs
- _AutoWebProxyScriptHelper.cs
- DataBinder.cs
- DbConnectionInternal.cs
- WebReference.cs
- MenuItemBindingCollection.cs
- XmlElementList.cs
- ClientConvert.cs
- UnsafeNativeMethods.cs