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
- BrushConverter.cs
- SQLBytes.cs
- GetMemberBinder.cs
- PerformanceCounterPermissionEntry.cs
- RelationshipFixer.cs
- IconConverter.cs
- ServicePointManagerElement.cs
- CreateParams.cs
- SmiEventSink_Default.cs
- CryptoStream.cs
- CurrentChangingEventManager.cs
- UniqueCodeIdentifierScope.cs
- ScriptingAuthenticationServiceSection.cs
- DodSequenceMerge.cs
- XmlDigitalSignatureProcessor.cs
- TypeSystem.cs
- CheckBox.cs
- SafeReadContext.cs
- MsmqAppDomainProtocolHandler.cs
- WindowsAuthenticationModule.cs
- QueueProcessor.cs
- ClaimTypes.cs
- ExpressionCopier.cs
- RoutedEvent.cs
- ConsumerConnectionPoint.cs
- updateconfighost.cs
- ParallelTimeline.cs
- ErrorFormatterPage.cs
- Barrier.cs
- PathSegment.cs
- ColorIndependentAnimationStorage.cs
- DetailsViewPagerRow.cs
- DelegateBodyWriter.cs
- GlobalItem.cs
- Utils.cs
- DocumentsTrace.cs
- DomNameTable.cs
- X509SecurityTokenAuthenticator.cs
- _LazyAsyncResult.cs
- nulltextcontainer.cs
- Drawing.cs
- MdiWindowListStrip.cs
- ComplexLine.cs
- ActiveXHelper.cs
- EFTableProvider.cs
- ComboBoxItem.cs
- ConstraintStruct.cs
- State.cs
- CompareInfo.cs
- ExtenderHelpers.cs
- DynamicControl.cs
- IsolatedStorageException.cs
- UrlMapping.cs
- TableStyle.cs
- StructuralObject.cs
- XPathNavigator.cs
- MissingMemberException.cs
- ConfigurationManagerHelper.cs
- WebServiceBindingAttribute.cs
- Native.cs
- Int32CAMarshaler.cs
- DataServiceQueryException.cs
- UnconditionalPolicy.cs
- oledbconnectionstring.cs
- CodeCommentStatement.cs
- CollaborationHelperFunctions.cs
- WindowsEditBoxRange.cs
- SystemWebCachingSectionGroup.cs
- ExpressionVisitorHelpers.cs
- DPTypeDescriptorContext.cs
- PageAsyncTask.cs
- _IPv6Address.cs
- BlockExpression.cs
- LateBoundBitmapDecoder.cs
- Model3DGroup.cs
- TdsParser.cs
- PropertyPathConverter.cs
- SaveFileDialogDesigner.cs
- SizeConverter.cs
- DelegateHelpers.Generated.cs
- UIHelper.cs
- CommentAction.cs
- SerializationInfo.cs
- KnownTypesProvider.cs
- XmlNullResolver.cs
- CapabilitiesSection.cs
- PolicyUtility.cs
- ComPlusDiagnosticTraceSchemas.cs
- WebPartTracker.cs
- HierarchicalDataTemplate.cs
- XmlSerializerSection.cs
- KoreanLunisolarCalendar.cs
- InitializationEventAttribute.cs
- DbParameterCollectionHelper.cs
- IntAverageAggregationOperator.cs
- Message.cs
- DataGridViewComboBoxColumn.cs
- SolidBrush.cs
- OracleRowUpdatedEventArgs.cs
- TemplateBamlRecordReader.cs