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
- MobileUITypeEditor.cs
- TcpStreams.cs
- XmlQueryStaticData.cs
- mansign.cs
- RangeValuePattern.cs
- TableDesigner.cs
- ConnectionStringsExpressionBuilder.cs
- GetChildSubtree.cs
- LinqDataSourceSelectEventArgs.cs
- FixedPageProcessor.cs
- ColumnMapCopier.cs
- HttpPostProtocolImporter.cs
- SemanticAnalyzer.cs
- KoreanCalendar.cs
- CdpEqualityComparer.cs
- CancelEventArgs.cs
- MissingManifestResourceException.cs
- PointCollectionConverter.cs
- WindowCollection.cs
- DataGridViewCheckBoxColumn.cs
- XmlRawWriter.cs
- DesignerHost.cs
- SafeWaitHandle.cs
- TdsParserSafeHandles.cs
- HashSet.cs
- XmlImplementation.cs
- SHA512CryptoServiceProvider.cs
- XmlNavigatorFilter.cs
- ConfigurationLocationCollection.cs
- SharedDp.cs
- PassportIdentity.cs
- XamlStyleSerializer.cs
- WebConfigurationManager.cs
- XPathMultyIterator.cs
- _IPv6Address.cs
- SettingsAttributes.cs
- AutomationEventArgs.cs
- SerializationSectionGroup.cs
- XamlFigureLengthSerializer.cs
- ProfilePropertySettingsCollection.cs
- PagePropertiesChangingEventArgs.cs
- CommandBinding.cs
- TargetConverter.cs
- CoTaskMemHandle.cs
- ConfigurationStrings.cs
- SafeMemoryMappedFileHandle.cs
- HttpHandlersSection.cs
- NetworkInformationException.cs
- ConstraintStruct.cs
- WpfPayload.cs
- GraphicsPathIterator.cs
- Positioning.cs
- ProtocolsConfiguration.cs
- SchemaImporterExtensionElementCollection.cs
- EventLogQuery.cs
- FunctionMappingTranslator.cs
- WindowsTokenRoleProvider.cs
- HttpRequestWrapper.cs
- FileUpload.cs
- ProfileGroupSettings.cs
- TraceLevelStore.cs
- BitmapEffectDrawing.cs
- ByteFacetDescriptionElement.cs
- CompositeScriptReferenceEventArgs.cs
- PageParser.cs
- CubicEase.cs
- BindingNavigator.cs
- ProgressBarAutomationPeer.cs
- ComponentEditorForm.cs
- RadioButton.cs
- CodeAccessSecurityEngine.cs
- SqlParameter.cs
- SqlProcedureAttribute.cs
- Win32.cs
- SqlDataSourceRefreshSchemaForm.cs
- AdRotatorDesigner.cs
- CharacterHit.cs
- WorkflowServiceHostFactory.cs
- DataGridViewSelectedCellCollection.cs
- TemplateBuilder.cs
- SqlStatistics.cs
- VirtualizingStackPanel.cs
- IntSecurity.cs
- Nodes.cs
- TableRowGroup.cs
- Scene3D.cs
- AnnotationAdorner.cs
- ButtonColumn.cs
- InsufficientExecutionStackException.cs
- SqlDependency.cs
- SimpleExpression.cs
- XmlMapping.cs
- SqlCacheDependency.cs
- CalendarButtonAutomationPeer.cs
- ReferenceTypeElement.cs
- ColorIndependentAnimationStorage.cs
- HttpResponseHeader.cs
- XPathNavigator.cs
- DrawingImage.cs
- XmlSchemaSubstitutionGroup.cs