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
- X509Certificate2.cs
- Int32Storage.cs
- ConfigLoader.cs
- TraceUtils.cs
- PathTooLongException.cs
- ReturnType.cs
- SpecularMaterial.cs
- ArrayConverter.cs
- DataSetSchema.cs
- PersonalizationDictionary.cs
- HMACSHA256.cs
- PathGradientBrush.cs
- SwitchCase.cs
- TimeoutHelper.cs
- IndexedGlyphRun.cs
- cookieexception.cs
- SrgsDocument.cs
- ObjectItemAssemblyLoader.cs
- TagElement.cs
- SerializationAttributes.cs
- xsdvalidator.cs
- AdPostCacheSubstitution.cs
- LinearKeyFrames.cs
- FixedPosition.cs
- XmlChoiceIdentifierAttribute.cs
- _ChunkParse.cs
- BitmapFrame.cs
- ClientProxyGenerator.cs
- StyleXamlTreeBuilder.cs
- ResourceAssociationSet.cs
- Facet.cs
- TextBox.cs
- QueryTreeBuilder.cs
- DictionarySurrogate.cs
- PrimitiveXmlSerializers.cs
- wgx_render.cs
- TdsParserSafeHandles.cs
- MergablePropertyAttribute.cs
- DocumentViewerConstants.cs
- CatalogPartCollection.cs
- NegationPusher.cs
- KeyGestureConverter.cs
- Range.cs
- InstanceDescriptor.cs
- SwitchElementsCollection.cs
- MessagePropertyDescriptionCollection.cs
- SubclassTypeValidatorAttribute.cs
- TextEndOfLine.cs
- CodeArrayCreateExpression.cs
- DataObjectFieldAttribute.cs
- StringExpressionSet.cs
- KeyValuePairs.cs
- ExtensionWindowHeader.cs
- SecurityStateEncoder.cs
- ShapingEngine.cs
- TextEditor.cs
- LicenseContext.cs
- DataSpaceManager.cs
- ElementProxy.cs
- RankException.cs
- TagPrefixCollection.cs
- TextBreakpoint.cs
- SimpleApplicationHost.cs
- XNodeValidator.cs
- Membership.cs
- DataServiceProcessingPipeline.cs
- BindingGroup.cs
- SecureConversationServiceCredential.cs
- CodeTypeReferenceSerializer.cs
- SqlErrorCollection.cs
- CopyOfAction.cs
- DownloadProgressEventArgs.cs
- SettingsProviderCollection.cs
- SafeEventLogWriteHandle.cs
- SerializationInfo.cs
- HttpPostedFileBase.cs
- FreezableDefaultValueFactory.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CurrencyManager.cs
- PropertyIDSet.cs
- Serializer.cs
- ExpressionLexer.cs
- Size.cs
- DesignerObject.cs
- ConstNode.cs
- GenericEnumConverter.cs
- GridView.cs
- RectangleHotSpot.cs
- ObjectPersistData.cs
- SerialPort.cs
- ListControl.cs
- RangeValidator.cs
- PrimarySelectionGlyph.cs
- ProfileParameter.cs
- MouseEvent.cs
- XamlStyleSerializer.cs
- ChangeNode.cs
- ReturnType.cs
- AdapterUtil.cs
- CheckBoxBaseAdapter.cs