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
- ControlBuilder.cs
- XamlToRtfWriter.cs
- CompositeActivityTypeDescriptorProvider.cs
- IPipelineRuntime.cs
- PathFigureCollectionValueSerializer.cs
- WebPartConnectionsEventArgs.cs
- SharedUtils.cs
- JsonSerializer.cs
- UniformGrid.cs
- SwitchLevelAttribute.cs
- PropertyInfo.cs
- ElementProxy.cs
- SmtpFailedRecipientsException.cs
- DataGridCellsPanel.cs
- HttpContextServiceHost.cs
- MsdtcWrapper.cs
- Light.cs
- ListViewGroupConverter.cs
- PropertyRecord.cs
- BuilderPropertyEntry.cs
- ParameterElementCollection.cs
- wgx_render.cs
- ChannelManager.cs
- NetworkInformationPermission.cs
- HttpChannelHelpers.cs
- TextDecorations.cs
- CroppedBitmap.cs
- FormsAuthenticationTicket.cs
- SetIterators.cs
- _FtpControlStream.cs
- NullExtension.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeNode.cs
- XPathAncestorQuery.cs
- Line.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PerspectiveCamera.cs
- EntityException.cs
- PropertyGridCommands.cs
- ByeMessageCD1.cs
- EmbossBitmapEffect.cs
- ValueProviderWrapper.cs
- HttpResponse.cs
- UiaCoreApi.cs
- VirtualizingStackPanel.cs
- ChtmlImageAdapter.cs
- XmlSchemaAttributeGroup.cs
- TabPage.cs
- SessionStateItemCollection.cs
- Command.cs
- SingleKeyFrameCollection.cs
- VisualStateChangedEventArgs.cs
- IndexExpression.cs
- SoapTypeAttribute.cs
- AnnotationDocumentPaginator.cs
- GlyphCollection.cs
- HtmlMobileTextWriter.cs
- RedirectionProxy.cs
- XPathSingletonIterator.cs
- XmlSchemaType.cs
- AxisAngleRotation3D.cs
- CompiledQueryCacheEntry.cs
- unitconverter.cs
- Odbc32.cs
- RC2.cs
- WebPartMinimizeVerb.cs
- XmlEncodedRawTextWriter.cs
- CompilationLock.cs
- LayoutTableCell.cs
- ArgumentException.cs
- EventTrigger.cs
- MemoryFailPoint.cs
- CodeConstructor.cs
- FileUpload.cs
- XmlRawWriter.cs
- DecimalConstantAttribute.cs
- TrackingProvider.cs
- StorageEntitySetMapping.cs
- FilterEventArgs.cs
- GuidelineSet.cs
- RegistryConfigurationProvider.cs
- Effect.cs
- SqlProfileProvider.cs
- FormatterConverter.cs
- TextRangeBase.cs
- _TLSstream.cs
- XComponentModel.cs
- WebPartTransformerAttribute.cs
- DefaultHttpHandler.cs
- ReachSerializationCacheItems.cs
- ContextStaticAttribute.cs
- AsyncDataRequest.cs
- TreeIterators.cs
- MenuAutomationPeer.cs
- ErrorActivity.cs
- ByteAnimationBase.cs
- EmbeddedMailObjectCollectionEditor.cs
- dbdatarecord.cs
- UIElementHelper.cs
- OrderPreservingPipeliningMergeHelper.cs