Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / CheckoutException.cs / 1305376 / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleAnimation.cs
- ProtocolElementCollection.cs
- CroppedBitmap.cs
- XmlHierarchicalEnumerable.cs
- SqlGatherProducedAliases.cs
- StrokeCollectionDefaultValueFactory.cs
- RadioButtonAutomationPeer.cs
- TrustSection.cs
- DependencyObjectType.cs
- DockPanel.cs
- HostProtectionException.cs
- GenericRootAutomationPeer.cs
- StaticDataManager.cs
- AttributeAction.cs
- SqlUtil.cs
- XslAst.cs
- BaseDataBoundControl.cs
- EntityContainer.cs
- NameScope.cs
- SQLMembershipProvider.cs
- PrinterSettings.cs
- TextParaLineResult.cs
- PreviewPrintController.cs
- XmlSchemaComplexContent.cs
- TypeInitializationException.cs
- RepeaterItemCollection.cs
- ArraySortHelper.cs
- SortKey.cs
- StylusCaptureWithinProperty.cs
- TTSEngineTypes.cs
- coordinator.cs
- ClientEndpointLoader.cs
- FormatterServicesNoSerializableCheck.cs
- ScriptRef.cs
- RemoteAsymmetricSignatureFormatter.cs
- SqlReferenceCollection.cs
- RoleService.cs
- TemplatedAdorner.cs
- BoundPropertyEntry.cs
- DataBindingHandlerAttribute.cs
- ToolStripMenuItem.cs
- DtdParser.cs
- ItemCheckedEvent.cs
- coordinator.cs
- ControlDesignerState.cs
- Perspective.cs
- ImageMap.cs
- Table.cs
- StructuredTypeInfo.cs
- FilterQuery.cs
- InterleavedZipPartStream.cs
- DesignerForm.cs
- _SslStream.cs
- FixedSchema.cs
- CollectionViewGroup.cs
- NamedPipeAppDomainProtocolHandler.cs
- WindowsFormsLinkLabel.cs
- RenderCapability.cs
- EventBuilder.cs
- SafeRightsManagementEnvironmentHandle.cs
- VectorCollectionValueSerializer.cs
- PerfService.cs
- DataBoundControlHelper.cs
- GradientStop.cs
- PackageRelationshipSelector.cs
- QuaternionAnimationBase.cs
- WebBrowserNavigatedEventHandler.cs
- InvokeMethodActivity.cs
- XmlValidatingReaderImpl.cs
- TableRow.cs
- SendMailErrorEventArgs.cs
- CoTaskMemSafeHandle.cs
- Wrapper.cs
- TextTreeDeleteContentUndoUnit.cs
- HebrewCalendar.cs
- AbsoluteQuery.cs
- NavigationPropertyEmitter.cs
- HostedElements.cs
- ArraySubsetEnumerator.cs
- TabControl.cs
- AttributedMetaModel.cs
- GcSettings.cs
- XmlDocumentSurrogate.cs
- NativeMethods.cs
- Scripts.cs
- ModifierKeysValueSerializer.cs
- PrintingPermissionAttribute.cs
- WpfPayload.cs
- unsafenativemethodsother.cs
- WindowsSolidBrush.cs
- PhonemeEventArgs.cs
- _NegoState.cs
- JsonReaderWriterFactory.cs
- DataGridViewRowStateChangedEventArgs.cs
- SettingsAttributeDictionary.cs
- EntitySqlQueryCacheEntry.cs
- SystemColors.cs
- Base64Decoder.cs
- BaseTemplateBuildProvider.cs
- AccessibleObject.cs