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
- SchemaSetCompiler.cs
- RenderOptions.cs
- PeerFlooder.cs
- ListControlConvertEventArgs.cs
- WithParamAction.cs
- ForEachAction.cs
- IntPtr.cs
- DataGridViewLinkColumn.cs
- EventInfo.cs
- MgmtConfigurationRecord.cs
- EncoderParameters.cs
- GraphicsContext.cs
- AttributeAction.cs
- SecurityTokenProvider.cs
- WizardStepBase.cs
- ClickablePoint.cs
- BinaryObjectWriter.cs
- _ListenerAsyncResult.cs
- __Error.cs
- AppliesToBehaviorDecisionTable.cs
- GlobalEventManager.cs
- SynchronousSendBindingElement.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- AsyncCallback.cs
- PopupControlService.cs
- ButtonBaseAutomationPeer.cs
- Int16Animation.cs
- CompilationSection.cs
- XmlSchemaException.cs
- Compiler.cs
- EntitySqlQueryBuilder.cs
- DataGridViewButtonCell.cs
- odbcmetadatacollectionnames.cs
- PinnedBufferMemoryStream.cs
- ViewCellSlot.cs
- BufferModesCollection.cs
- MenuItem.cs
- XmlBinaryWriter.cs
- TextRunProperties.cs
- XPathParser.cs
- SqlConnectionStringBuilder.cs
- ParallelTimeline.cs
- CreateRefExpr.cs
- XmlAttributeHolder.cs
- PtsHost.cs
- Parser.cs
- ObjectQueryState.cs
- TextWriter.cs
- PointAnimationClockResource.cs
- RequestCacheValidator.cs
- ExtenderProvidedPropertyAttribute.cs
- TreeNodeCollection.cs
- EncoderBestFitFallback.cs
- ServerType.cs
- UInt64.cs
- AsyncStreamReader.cs
- PipelineModuleStepContainer.cs
- XPathAxisIterator.cs
- CultureInfo.cs
- SoundPlayer.cs
- PropertyInformationCollection.cs
- SHA256Managed.cs
- ObjectTag.cs
- Permission.cs
- PartManifestEntry.cs
- StylusTip.cs
- ToolStripDesignerAvailabilityAttribute.cs
- NullExtension.cs
- RequestCacheValidator.cs
- SchemaImporterExtensionElementCollection.cs
- ChannelManagerBase.cs
- ButtonFieldBase.cs
- DoubleUtil.cs
- CellTreeNode.cs
- EventDrivenDesigner.cs
- JournalNavigationScope.cs
- SqlMethodAttribute.cs
- TagMapInfo.cs
- ObjRef.cs
- XmlAttributeAttribute.cs
- BookmarkUndoUnit.cs
- mongolianshape.cs
- ProcessStartInfo.cs
- AQNBuilder.cs
- QuaternionKeyFrameCollection.cs
- LocationUpdates.cs
- HtmlContainerControl.cs
- HttpChannelBindingToken.cs
- VisualBrush.cs
- DocumentViewerHelper.cs
- WrappedIUnknown.cs
- RuntimeDelegateArgument.cs
- HttpClientCertificate.cs
- ImageConverter.cs
- XmlSerializationGeneratedCode.cs
- UpdateManifestForBrowserApplication.cs
- ConfigXmlComment.cs
- RewritingValidator.cs
- CacheForPrimitiveTypes.cs
- QuaternionAnimationBase.cs