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
- FixedDocumentSequencePaginator.cs
- ServiceEndpoint.cs
- rsa.cs
- CompressedStack.cs
- ConfigsHelper.cs
- Renderer.cs
- InputGestureCollection.cs
- MinMaxParagraphWidth.cs
- VirtualPathProvider.cs
- SchemaDeclBase.cs
- DBBindings.cs
- OrCondition.cs
- ObjectConverter.cs
- WizardPanel.cs
- SystemException.cs
- SchemaLookupTable.cs
- PriorityBinding.cs
- ClipboardProcessor.cs
- SqlProcedureAttribute.cs
- WebPartUtil.cs
- ProxyWebPartConnectionCollection.cs
- ContextBase.cs
- XmlSignatureProperties.cs
- hresults.cs
- RotateTransform3D.cs
- MdiWindowListStrip.cs
- DataObjectPastingEventArgs.cs
- ZipIOLocalFileDataDescriptor.cs
- XmlNodeReader.cs
- NetworkStream.cs
- SpecialTypeDataContract.cs
- IDReferencePropertyAttribute.cs
- ContentDisposition.cs
- NonClientArea.cs
- ToolStripLabel.cs
- StateManagedCollection.cs
- ClrPerspective.cs
- GridViewRowCollection.cs
- SafeEventLogReadHandle.cs
- RtfToXamlLexer.cs
- DecoderReplacementFallback.cs
- NullableDecimalSumAggregationOperator.cs
- ToolStripGrip.cs
- ListItemConverter.cs
- SoapClientMessage.cs
- PartialList.cs
- ProxyManager.cs
- MessageBox.cs
- Section.cs
- ClientSettings.cs
- PersonalizationEntry.cs
- CacheMemory.cs
- MobileResource.cs
- SqlUserDefinedAggregateAttribute.cs
- loginstatus.cs
- Int16AnimationUsingKeyFrames.cs
- TemplateXamlTreeBuilder.cs
- CheckBoxField.cs
- SvcFileManager.cs
- LZCodec.cs
- SafeCryptoHandles.cs
- HttpCapabilitiesBase.cs
- CommandHelper.cs
- DbException.cs
- ArrangedElement.cs
- Decimal.cs
- ArithmeticException.cs
- IndentTextWriter.cs
- M3DUtil.cs
- BooleanProjectedSlot.cs
- Condition.cs
- XamlReader.cs
- LinqDataSourceHelper.cs
- UnmanagedBitmapWrapper.cs
- Pkcs9Attribute.cs
- DispatcherProcessingDisabled.cs
- CategoryAttribute.cs
- WindowHelperService.cs
- BitArray.cs
- DeviceOverridableAttribute.cs
- LinkAreaEditor.cs
- SmiContextFactory.cs
- RankException.cs
- KeyboardDevice.cs
- SqlBuffer.cs
- Point.cs
- XmlBinaryWriterSession.cs
- MethodSet.cs
- StackBuilderSink.cs
- SHA256CryptoServiceProvider.cs
- BitmapEffectInputConnector.cs
- TagMapCollection.cs
- SystemUdpStatistics.cs
- DbParameterCollectionHelper.cs
- Transactions.cs
- Timeline.cs
- MemberDomainMap.cs
- DataGridViewRowHeaderCell.cs
- OracleInfoMessageEventArgs.cs
- FloaterParaClient.cs