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
- HtmlElementCollection.cs
- NativeMethods.cs
- ExtensionSimplifierMarkupObject.cs
- DefaultPrintController.cs
- DropShadowBitmapEffect.cs
- StreamFormatter.cs
- ProtectedProviderSettings.cs
- HiddenFieldPageStatePersister.cs
- SelectedDatesCollection.cs
- NotFiniteNumberException.cs
- DataGridViewColumnCollection.cs
- TraceProvider.cs
- StorageMappingItemCollection.cs
- XmlNodeChangedEventManager.cs
- RightsManagementLicense.cs
- SmtpNegotiateAuthenticationModule.cs
- MissingMethodException.cs
- RuntimeArgumentHandle.cs
- InstanceView.cs
- BitmapEffectDrawingContextState.cs
- MultiView.cs
- Encoder.cs
- Cursor.cs
- AdapterUtil.cs
- FileDialogCustomPlacesCollection.cs
- XamlTypeMapper.cs
- CryptoApi.cs
- InProcStateClientManager.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SystemDiagnosticsSection.cs
- AdornerPresentationContext.cs
- ValueTypePropertyReference.cs
- FlagsAttribute.cs
- VisualTarget.cs
- SemaphoreSecurity.cs
- Evidence.cs
- BamlCollectionHolder.cs
- LinqDataSourceDisposeEventArgs.cs
- Encoding.cs
- CqlErrorHelper.cs
- SpellerStatusTable.cs
- Stopwatch.cs
- TaskResultSetter.cs
- JoinQueryOperator.cs
- DataSourceGroupCollection.cs
- UpdateTracker.cs
- DesignerDeviceConfig.cs
- HttpValueCollection.cs
- SqlIdentifier.cs
- DataGridPageChangedEventArgs.cs
- Debug.cs
- NetMsmqBinding.cs
- PingReply.cs
- ListParaClient.cs
- SkinBuilder.cs
- PenContext.cs
- SQLResource.cs
- DesignerActionKeyboardBehavior.cs
- Deflater.cs
- OdbcConnectionPoolProviderInfo.cs
- DataBindingExpressionBuilder.cs
- GatewayIPAddressInformationCollection.cs
- RuleInfoComparer.cs
- Marshal.cs
- UnsafeNativeMethods.cs
- _UriTypeConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- WsdlBuildProvider.cs
- DoubleConverter.cs
- ArrayListCollectionBase.cs
- ListBoxItemWrapperAutomationPeer.cs
- AbandonedMutexException.cs
- SimpleFieldTemplateFactory.cs
- HitTestParameters.cs
- RowToFieldTransformer.cs
- FileRegion.cs
- Propagator.Evaluator.cs
- Funcletizer.cs
- X509Certificate2.cs
- Content.cs
- Drawing.cs
- ExpressionNode.cs
- TraceListeners.cs
- SecurityIdentifierElementCollection.cs
- VirtualDirectoryMappingCollection.cs
- Exceptions.cs
- CommandHelpers.cs
- DiscoveryClientChannelBase.cs
- PerformanceCounter.cs
- BinaryObjectWriter.cs
- CacheAxisQuery.cs
- TemplateAction.cs
- MultiAsyncResult.cs
- Parsers.cs
- ScriptBehaviorDescriptor.cs
- TypeProvider.cs
- ConstructorArgumentAttribute.cs
- CfgRule.cs
- BuildProvider.cs
- ValidatorCollection.cs