Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SafeProcessHandle.cs
- DropShadowBitmapEffect.cs
- DeploymentSectionCache.cs
- LineServices.cs
- SelectionChangedEventArgs.cs
- PackageFilter.cs
- DynamicPropertyReader.cs
- ElementsClipboardData.cs
- HandleCollector.cs
- Types.cs
- CaseInsensitiveComparer.cs
- EncoderNLS.cs
- CfgParser.cs
- XPathParser.cs
- VScrollBar.cs
- IIS7WorkerRequest.cs
- CommonDialog.cs
- TypeGeneratedEventArgs.cs
- NegationPusher.cs
- DataGridColumnsPage.cs
- LinqToSqlWrapper.cs
- SystemKeyConverter.cs
- ConcurrentDictionary.cs
- HealthMonitoringSectionHelper.cs
- ComponentConverter.cs
- SelectionRangeConverter.cs
- ContextStaticAttribute.cs
- AnnotationMap.cs
- OleDbMetaDataFactory.cs
- OleAutBinder.cs
- NavigationHelper.cs
- httpserverutility.cs
- ReadOnlyDataSource.cs
- DeviceSpecificChoice.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PathParser.cs
- WindowsScrollBarBits.cs
- Inline.cs
- BinarySerializer.cs
- CssTextWriter.cs
- XmlSchemaComplexType.cs
- ExpandCollapseProviderWrapper.cs
- SettingsProviderCollection.cs
- StreamReader.cs
- ArcSegment.cs
- EditorPartChrome.cs
- ImageListImageEditor.cs
- BookmarkScope.cs
- QilLiteral.cs
- UndoManager.cs
- RouteValueDictionary.cs
- XmlValidatingReaderImpl.cs
- WorkflowInstanceProvider.cs
- LogicalExpr.cs
- WebPartCollection.cs
- TextClipboardData.cs
- Rect3D.cs
- ListItemCollection.cs
- ThreadPoolTaskScheduler.cs
- SessionEndedEventArgs.cs
- QilSortKey.cs
- UserNameSecurityToken.cs
- OdbcParameterCollection.cs
- PropertyTabAttribute.cs
- UTF32Encoding.cs
- PeerDuplexChannelListener.cs
- MailMessage.cs
- BidOverLoads.cs
- Timer.cs
- CapabilitiesPattern.cs
- DirectoryInfo.cs
- PassportAuthenticationModule.cs
- PersonalizationStateInfo.cs
- LinearKeyFrames.cs
- ConcurrentDictionary.cs
- GridViewPageEventArgs.cs
- DependencyProperty.cs
- Rethrow.cs
- WeakHashtable.cs
- CodeArrayIndexerExpression.cs
- Journal.cs
- TrustManagerPromptUI.cs
- VisualProxy.cs
- BamlVersionHeader.cs
- DecoderExceptionFallback.cs
- ExternalDataExchangeService.cs
- TextFormatterContext.cs
- _CookieModule.cs
- RayHitTestParameters.cs
- XPathNodePointer.cs
- DataServiceRequestOfT.cs
- IncrementalCompileAnalyzer.cs
- AbsoluteQuery.cs
- Rfc2898DeriveBytes.cs
- InputScopeConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- AsymmetricSignatureDeformatter.cs
- MethodRental.cs
- HostDesigntimeLicenseContext.cs
- DependencyObjectProvider.cs