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
- MeasurementDCInfo.cs
- OptimizedTemplateContentHelper.cs
- JumpItem.cs
- ADMembershipProvider.cs
- EncoderParameter.cs
- ConfigurationProviderException.cs
- ThousandthOfEmRealPoints.cs
- DiagnosticsConfigurationHandler.cs
- List.cs
- FormatException.cs
- TypeToStringValueConverter.cs
- CounterSampleCalculator.cs
- TickBar.cs
- Brush.cs
- ApplicationDirectoryMembershipCondition.cs
- TemplateColumn.cs
- StreamWithDictionary.cs
- OdbcDataAdapter.cs
- AssociationSetEnd.cs
- QilIterator.cs
- HtmlHead.cs
- TreeViewImageGenerator.cs
- ListControlConvertEventArgs.cs
- TextElementEnumerator.cs
- XmlUnspecifiedAttribute.cs
- TextHidden.cs
- DesignerOptionService.cs
- Mutex.cs
- ColumnWidthChangingEvent.cs
- StringResourceManager.cs
- ChannelManagerHelpers.cs
- SmtpNegotiateAuthenticationModule.cs
- UriSection.cs
- UIElementParaClient.cs
- ListenerConfig.cs
- SerializationEventsCache.cs
- Binding.cs
- PackWebRequestFactory.cs
- SpecialTypeDataContract.cs
- FieldAccessException.cs
- RestHandlerFactory.cs
- ComplexObject.cs
- autovalidator.cs
- JavascriptXmlWriterWrapper.cs
- DelegatingTypeDescriptionProvider.cs
- GeneralTransform3D.cs
- DecoderNLS.cs
- XmlEncodedRawTextWriter.cs
- DesignerHelpers.cs
- ExpressionEditor.cs
- Model3D.cs
- SQLInt32.cs
- TypeForwardedToAttribute.cs
- WorkflowOperationBehavior.cs
- FaultPropagationRecord.cs
- StylusPointPropertyId.cs
- KnownTypes.cs
- Compiler.cs
- Input.cs
- ScriptingScriptResourceHandlerSection.cs
- DesignerCommandSet.cs
- SQLDoubleStorage.cs
- coordinatorfactory.cs
- MetaTable.cs
- XsdCachingReader.cs
- ArrayExtension.cs
- IdentityValidationException.cs
- ImageListStreamer.cs
- DataBindEngine.cs
- FrameworkObject.cs
- AssemblyCache.cs
- ProtocolViolationException.cs
- CodeCatchClause.cs
- basenumberconverter.cs
- LogAppendAsyncResult.cs
- RegionInfo.cs
- DataBindingExpressionBuilder.cs
- TextEditorTyping.cs
- GeometryValueSerializer.cs
- DesignTimeVisibleAttribute.cs
- Clipboard.cs
- ControlCachePolicy.cs
- ClaimTypeElement.cs
- SecurityHeaderLayout.cs
- QilStrConcat.cs
- localization.cs
- ErrorFormatter.cs
- CodeDomExtensionMethods.cs
- TreeNodeBindingCollection.cs
- HostingPreferredMapPath.cs
- X509ChainPolicy.cs
- InProcStateClientManager.cs
- BamlResourceSerializer.cs
- FastEncoder.cs
- TypedTableGenerator.cs
- XmlSchemaDatatype.cs
- XamlSerializationHelper.cs
- DynamicValueConverter.cs
- CharacterMetricsDictionary.cs
- Pen.cs