Code:
/ FX-1434 / FX-1434 / 1.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
- UniqueIdentifierService.cs
- SemaphoreSecurity.cs
- ScaleTransform.cs
- MobileCapabilities.cs
- SyncMethodInvoker.cs
- InvalidOperationException.cs
- Compiler.cs
- SettingsBase.cs
- ToolStripRenderEventArgs.cs
- SqlProviderServices.cs
- WebPartConnectionsEventArgs.cs
- HotSpotCollection.cs
- MSG.cs
- BulletedList.cs
- AdRotator.cs
- UserNameSecurityTokenProvider.cs
- WorkflowTerminatedException.cs
- Rect.cs
- HtmlValidationSummaryAdapter.cs
- ClientScriptManager.cs
- WebPartMinimizeVerb.cs
- ArrangedElement.cs
- CharacterBuffer.cs
- DataObject.cs
- XmlSerializer.cs
- XmlLoader.cs
- CanExpandCollapseAllConverter.cs
- DataObjectSettingDataEventArgs.cs
- RIPEMD160.cs
- WebZone.cs
- LogLogRecordEnumerator.cs
- GridViewUpdateEventArgs.cs
- SchemaTypeEmitter.cs
- WhitespaceRuleReader.cs
- BitmapEffectGroup.cs
- WorkItem.cs
- ShutDownListener.cs
- ConfigXmlReader.cs
- FormViewPagerRow.cs
- ComponentResourceKeyConverter.cs
- Util.cs
- DBAsyncResult.cs
- ListItemCollection.cs
- IisTraceWebEventProvider.cs
- ShellProvider.cs
- RelatedCurrencyManager.cs
- SqlDataRecord.cs
- DynamicDataExtensions.cs
- SmiEventSink_Default.cs
- TailCallAnalyzer.cs
- PreviewPageInfo.cs
- KeyValuePairs.cs
- SystemIPGlobalProperties.cs
- SmtpFailedRecipientsException.cs
- DataSvcMapFileSerializer.cs
- SecurityCriticalDataForSet.cs
- StringBlob.cs
- CommandLibraryHelper.cs
- AddInActivator.cs
- SQLString.cs
- ResponseStream.cs
- DelimitedListTraceListener.cs
- SizeKeyFrameCollection.cs
- VolatileResourceManager.cs
- DbInsertCommandTree.cs
- ShowExpandedMultiValueConverter.cs
- BitmapEncoder.cs
- XmlSchemaAttribute.cs
- ReflectionHelper.cs
- BufferModeSettings.cs
- SourceInterpreter.cs
- CodeIdentifiers.cs
- ThumbAutomationPeer.cs
- MembershipPasswordException.cs
- PersonalizationProvider.cs
- TextInfo.cs
- StateMachineWorkflow.cs
- GridViewAutomationPeer.cs
- ColorTranslator.cs
- CurrentTimeZone.cs
- XmlReflectionImporter.cs
- SystemUnicastIPAddressInformation.cs
- EnvelopedPkcs7.cs
- ProfileGroupSettingsCollection.cs
- ProcessingInstructionAction.cs
- PassportAuthenticationEventArgs.cs
- SafeEventLogWriteHandle.cs
- ChildDocumentBlock.cs
- RegexGroupCollection.cs
- ToolStripSettings.cs
- counter.cs
- FusionWrap.cs
- WebReferencesBuildProvider.cs
- PersonalizationEntry.cs
- FormsAuthenticationCredentials.cs
- BindingOperations.cs
- ProviderUtil.cs
- AstTree.cs
- AmbiguousMatchException.cs
- FullTrustAssemblyCollection.cs