Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PermissionSetEnumerator.cs
- URIFormatException.cs
- UserControl.cs
- PageThemeBuildProvider.cs
- MethodToken.cs
- GrammarBuilderBase.cs
- Permission.cs
- FileDetails.cs
- JsonClassDataContract.cs
- ExtendedPropertyCollection.cs
- X509ChainElement.cs
- LocatorPart.cs
- ProfileProvider.cs
- LongMinMaxAggregationOperator.cs
- SqlGatherProducedAliases.cs
- FindSimilarActivitiesVerb.cs
- DataGridViewElement.cs
- SoapEnumAttribute.cs
- AmbientLight.cs
- control.ime.cs
- ValidatorCompatibilityHelper.cs
- ListViewAutomationPeer.cs
- BufferBuilder.cs
- DbConnectionClosed.cs
- SortableBindingList.cs
- AuthenticationModuleElementCollection.cs
- DateTimePickerDesigner.cs
- DocumentCollection.cs
- IncrementalReadDecoders.cs
- WizardPanelChangingEventArgs.cs
- CodeNamespaceImportCollection.cs
- Point3DCollection.cs
- ExtensionFile.cs
- StateElementCollection.cs
- ExtractorMetadata.cs
- ResourceContainer.cs
- ClientBuildManagerCallback.cs
- EndpointAddressProcessor.cs
- IdentityReference.cs
- SubpageParaClient.cs
- ActivationServices.cs
- FileAuthorizationModule.cs
- IteratorDescriptor.cs
- BadImageFormatException.cs
- MenuItemStyleCollectionEditor.cs
- RadioButtonStandardAdapter.cs
- Event.cs
- ProcessStartInfo.cs
- NoResizeSelectionBorderGlyph.cs
- TextContainer.cs
- RadioButtonFlatAdapter.cs
- WindowShowOrOpenTracker.cs
- GACMembershipCondition.cs
- DataSetFieldSchema.cs
- StringConverter.cs
- SystemPens.cs
- UIElement.cs
- DynamicScriptObject.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- HtmlInputRadioButton.cs
- CodeCommentStatementCollection.cs
- XmlBinaryWriter.cs
- ObjectDataSource.cs
- SystemColors.cs
- PageAsyncTask.cs
- OuterGlowBitmapEffect.cs
- DataControlFieldCell.cs
- HttpException.cs
- ToolStripControlHost.cs
- RoutedPropertyChangedEventArgs.cs
- CodeExpressionCollection.cs
- EntityContainerEmitter.cs
- DataControlFieldCell.cs
- ClientSettings.cs
- DataGridViewTextBoxEditingControl.cs
- CodeTypeReferenceSerializer.cs
- SynchronizationLockException.cs
- PageAsyncTaskManager.cs
- Walker.cs
- AnimationStorage.cs
- PersonalizationProviderCollection.cs
- TextEvent.cs
- StaticExtension.cs
- OleDbInfoMessageEvent.cs
- ControlTemplate.cs
- FileDialogCustomPlace.cs
- VScrollBar.cs
- EventRecord.cs
- TargetControlTypeCache.cs
- WebScriptEnablingElement.cs
- SimplePropertyEntry.cs
- TrackingParameters.cs
- SystemPens.cs
- HtmlGenericControl.cs
- NavigationService.cs
- XmlSerializer.cs
- XmlTextAttribute.cs
- CheckBoxField.cs
- basecomparevalidator.cs