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
- Clipboard.cs
- TraceContextEventArgs.cs
- OdbcDataReader.cs
- PageParser.cs
- UnmanagedHandle.cs
- DataServiceKeyAttribute.cs
- GridViewHeaderRowPresenter.cs
- SemaphoreSecurity.cs
- SafeTokenHandle.cs
- SlipBehavior.cs
- NativeMethods.cs
- PropertyMap.cs
- OracleParameter.cs
- TdsValueSetter.cs
- Win32.cs
- KeyValueConfigurationElement.cs
- XslUrlEditor.cs
- AnonymousIdentificationModule.cs
- MediaPlayerState.cs
- EditableRegion.cs
- SeekStoryboard.cs
- RangeBaseAutomationPeer.cs
- COM2AboutBoxPropertyDescriptor.cs
- StubHelpers.cs
- AssociationEndMember.cs
- ClrProviderManifest.cs
- ByeOperationCD1AsyncResult.cs
- ManagementEventWatcher.cs
- _SecureChannel.cs
- xmlglyphRunInfo.cs
- DynamicPropertyHolder.cs
- XmlSchemaSimpleContentRestriction.cs
- MenuAutomationPeer.cs
- SynchronousSendBindingElement.cs
- MailHeaderInfo.cs
- NeutralResourcesLanguageAttribute.cs
- Vector3DCollectionValueSerializer.cs
- XmlDataSourceView.cs
- SnapLine.cs
- UrlRoutingModule.cs
- CmsInterop.cs
- WeakEventManager.cs
- UInt64Converter.cs
- NativeCppClassAttribute.cs
- Calendar.cs
- ServiceParser.cs
- HttpDigestClientElement.cs
- ApplicationTrust.cs
- RemotingClientProxy.cs
- BinaryWriter.cs
- SQLInt32Storage.cs
- ListBoxChrome.cs
- SafeNativeMethods.cs
- DataGridColumn.cs
- ParameterModifier.cs
- MDIClient.cs
- DXD.cs
- MultipleViewProviderWrapper.cs
- RunInstallerAttribute.cs
- XmlSubtreeReader.cs
- JsonWriter.cs
- RuntimeHelpers.cs
- KerberosSecurityTokenProvider.cs
- ProgressiveCrcCalculatingStream.cs
- ProcessThreadDesigner.cs
- CheckBoxList.cs
- TypeDescriptor.cs
- CompareValidator.cs
- SubMenuStyleCollection.cs
- EncryptedPackageFilter.cs
- ClassDataContract.cs
- FlowDocumentPaginator.cs
- WindowsServiceCredential.cs
- InvalidFilterCriteriaException.cs
- X509Utils.cs
- XappLauncher.cs
- ScalarRestriction.cs
- DiagnosticTraceSource.cs
- ScriptManagerProxy.cs
- XomlCompilerHelpers.cs
- FixedSchema.cs
- DataBindingHandlerAttribute.cs
- URL.cs
- DocumentEventArgs.cs
- ScrollPattern.cs
- ContractMethodInfo.cs
- PostBackOptions.cs
- DesignerSerializationVisibilityAttribute.cs
- XmlHierarchicalEnumerable.cs
- PointValueSerializer.cs
- RadioButton.cs
- TagMapInfo.cs
- DataTableExtensions.cs
- XPathNavigator.cs
- ProtocolsSection.cs
- ListControlDataBindingHandler.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- PerformanceCounter.cs
- GorillaCodec.cs
- WorkerRequest.cs