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; ////// [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. //------------------------------------------------------------------------------ //// 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
- WebPartZoneCollection.cs
- GlyphShapingProperties.cs
- TraceRecord.cs
- DataGridViewCheckBoxCell.cs
- ListView.cs
- TheQuery.cs
- BookmarkScope.cs
- CodeDOMProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- AudioSignalProblemOccurredEventArgs.cs
- StatusStrip.cs
- PerformanceCounterLib.cs
- QilPatternFactory.cs
- PrinterUnitConvert.cs
- OAVariantLib.cs
- ResourceProperty.cs
- EdmFunctions.cs
- FixedTextView.cs
- AnimatedTypeHelpers.cs
- ToolboxComponentsCreatingEventArgs.cs
- ErrorHandler.cs
- Events.cs
- RequestCacheManager.cs
- ScriptResourceInfo.cs
- RawAppCommandInputReport.cs
- BindingUtils.cs
- NamedElement.cs
- GenericTypeParameterBuilder.cs
- ThreadStateException.cs
- AbstractDataSvcMapFileLoader.cs
- LinqTreeNodeEvaluator.cs
- LinqDataSourceSelectEventArgs.cs
- UrlParameterWriter.cs
- WinEventTracker.cs
- WrapPanel.cs
- DesignTimeTemplateParser.cs
- RadioButtonDesigner.cs
- CodeIdentifiers.cs
- listitem.cs
- PackageDigitalSignature.cs
- SystemIcmpV4Statistics.cs
- DbQueryCommandTree.cs
- FullTrustAssembliesSection.cs
- QuaternionAnimationUsingKeyFrames.cs
- pingexception.cs
- InvokeBase.cs
- SqlBooleanMismatchVisitor.cs
- RoleBoolean.cs
- HtmlTableCellCollection.cs
- RestHandler.cs
- JsonDataContract.cs
- Wrapper.cs
- InputLanguage.cs
- AttributeCollection.cs
- SqlBulkCopy.cs
- IncrementalHitTester.cs
- Marshal.cs
- FtpWebRequest.cs
- ListViewItemMouseHoverEvent.cs
- ExpressionBindings.cs
- EmptyEnumerator.cs
- IisTraceWebEventProvider.cs
- Accessible.cs
- OutputCache.cs
- ExpressionBindingCollection.cs
- Point4DConverter.cs
- Marshal.cs
- MessageQueueAccessControlEntry.cs
- SqlDependencyUtils.cs
- AdornedElementPlaceholder.cs
- ConstrainedDataObject.cs
- DataRowChangeEvent.cs
- GridViewRowEventArgs.cs
- FileSystemWatcher.cs
- HtmlButton.cs
- InputQueue.cs
- HtmlHistory.cs
- QilCloneVisitor.cs
- MatrixKeyFrameCollection.cs
- URLAttribute.cs
- MenuEventArgs.cs
- TableDetailsRow.cs
- HostProtectionException.cs
- _NTAuthentication.cs
- ObjectViewFactory.cs
- SemaphoreFullException.cs
- ToolBar.cs
- _AutoWebProxyScriptHelper.cs
- CollectionType.cs
- DeliveryRequirementsAttribute.cs
- ConfigXmlWhitespace.cs
- WriteFileContext.cs
- SafeJobHandle.cs
- QueryCursorEventArgs.cs
- StructuredTypeEmitter.cs
- MessageQueueTransaction.cs
- AssociationSetMetadata.cs
- UriTemplateTable.cs
- TextDecorationCollectionConverter.cs
- TableLayoutPanel.cs