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
- ImageSource.cs
- ScriptComponentDescriptor.cs
- RolePrincipal.cs
- FormattedText.cs
- RenderContext.cs
- OciLobLocator.cs
- COMException.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ErrorFormatter.cs
- BaseDataListDesigner.cs
- RequestCachingSection.cs
- CheckBox.cs
- BrowserTree.cs
- XmlAutoDetectWriter.cs
- indexingfiltermarshaler.cs
- SqlCharStream.cs
- DefaultParameterValueAttribute.cs
- EdmFunction.cs
- StateManagedCollection.cs
- HtmlTableCell.cs
- IsolatedStorageFilePermission.cs
- HintTextMaxWidthConverter.cs
- XhtmlBasicPanelAdapter.cs
- MSAANativeProvider.cs
- ButtonBase.cs
- DateTimeConverter.cs
- MethodImplAttribute.cs
- TextTrailingCharacterEllipsis.cs
- Margins.cs
- CodeSnippetTypeMember.cs
- MetadataHelper.cs
- DiffuseMaterial.cs
- CodeIterationStatement.cs
- cryptoapiTransform.cs
- AddInIpcChannel.cs
- CollectionEditor.cs
- CryptoApi.cs
- DelegateTypeInfo.cs
- CodeAttachEventStatement.cs
- CodeParameterDeclarationExpression.cs
- AssemblyAttributesGoHere.cs
- CopyNodeSetAction.cs
- ResXResourceWriter.cs
- PropertyGeneratedEventArgs.cs
- EventSourceCreationData.cs
- Internal.cs
- SmtpMail.cs
- XsdBuilder.cs
- DeflateStream.cs
- RtType.cs
- QuaternionValueSerializer.cs
- Object.cs
- ScriptControl.cs
- PerspectiveCamera.cs
- ViewGenerator.cs
- EventKeyword.cs
- ViewManagerAttribute.cs
- TextDataBindingHandler.cs
- LocalizedNameDescriptionPair.cs
- DataControlReference.cs
- SessionStateSection.cs
- CalendarDateRangeChangingEventArgs.cs
- PanelDesigner.cs
- NamespaceTable.cs
- ModelUIElement3D.cs
- BatchStream.cs
- SmiMetaData.cs
- AlternationConverter.cs
- DatePicker.cs
- DesigntimeLicenseContext.cs
- ByteAnimationUsingKeyFrames.cs
- InstalledFontCollection.cs
- ActivityInstance.cs
- DescendentsWalkerBase.cs
- SafeNativeMethods.cs
- DbConnectionPoolGroupProviderInfo.cs
- MetaData.cs
- cache.cs
- RectAnimationBase.cs
- HwndProxyElementProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- GeometryValueSerializer.cs
- UpdateException.cs
- TemplateBindingExpressionConverter.cs
- DragDropManager.cs
- autovalidator.cs
- Parser.cs
- Authorization.cs
- MailWebEventProvider.cs
- WebContext.cs
- XpsS0ValidatingLoader.cs
- HtmlHead.cs
- UnsafeNativeMethods.cs
- WindowsButton.cs
- UrlAuthFailureHandler.cs
- ActionMessageFilterTable.cs
- AsymmetricSignatureDeformatter.cs
- RequiredFieldValidator.cs
- IisTraceWebEventProvider.cs
- NameService.cs