Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / UnauthorizedAccessException.cs / 1 / UnauthorizedAccessException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: UnauthorizedAccessException ** ** ** Purpose: An exception for OS 'access denied' types of ** errors, including IO and limited security types ** of errors. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System { // The UnauthorizedAccessException is thrown when access errors // occur from IO or other OS methods. [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class UnauthorizedAccessException : SystemException { public UnauthorizedAccessException() : base(Environment.GetResourceString("Arg_UnauthorizedAccessException")) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } public UnauthorizedAccessException(String message) : base(message) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } public UnauthorizedAccessException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: UnauthorizedAccessException ** ** ** Purpose: An exception for OS 'access denied' types of ** errors, including IO and limited security types ** of errors. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System { // The UnauthorizedAccessException is thrown when access errors // occur from IO or other OS methods. [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class UnauthorizedAccessException : SystemException { public UnauthorizedAccessException() : base(Environment.GetResourceString("Arg_UnauthorizedAccessException")) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } public UnauthorizedAccessException(String message) : base(message) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } public UnauthorizedAccessException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_UNAUTHORIZEDACCESS); } protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // 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
- XmlSchemaSet.cs
- Perspective.cs
- LogicalExpr.cs
- BamlRecordHelper.cs
- SafeCryptoHandles.cs
- SiteMap.cs
- NumberAction.cs
- DetailsViewPagerRow.cs
- CompleteWizardStep.cs
- LogReservationCollection.cs
- StyleBamlRecordReader.cs
- ComponentTray.cs
- MapPathBasedVirtualPathProvider.cs
- URLString.cs
- WindowsGraphicsCacheManager.cs
- RenderDataDrawingContext.cs
- SqlConnectionStringBuilder.cs
- NativeMethods.cs
- DataGridHeaderBorder.cs
- AbstractExpressions.cs
- RowVisual.cs
- InsufficientMemoryException.cs
- InvokePattern.cs
- SapiInterop.cs
- ResourceManagerWrapper.cs
- EntityCommandDefinition.cs
- Variable.cs
- ListViewHitTestInfo.cs
- Soap12ProtocolImporter.cs
- WorkflowFormatterBehavior.cs
- FormatConvertedBitmap.cs
- DataTableCollection.cs
- _ShellExpression.cs
- CodeCompiler.cs
- ReadOnlyDictionary.cs
- DataTemplateKey.cs
- PositiveTimeSpanValidatorAttribute.cs
- PropertyTab.cs
- ISFTagAndGuidCache.cs
- MatrixAnimationBase.cs
- ListViewItemSelectionChangedEvent.cs
- ConnectorDragDropGlyph.cs
- CodeSubDirectoriesCollection.cs
- ErrorFormatterPage.cs
- DataGridTable.cs
- EnumerableRowCollectionExtensions.cs
- FontFamilyValueSerializer.cs
- CellParagraph.cs
- ProcessInputEventArgs.cs
- DefaultHttpHandler.cs
- MultiAsyncResult.cs
- SqlConnectionStringBuilder.cs
- RuleConditionDialog.Designer.cs
- SessionSwitchEventArgs.cs
- Hash.cs
- EncoderBestFitFallback.cs
- PrintPreviewControl.cs
- SqlProvider.cs
- TextTrailingWordEllipsis.cs
- FlowNode.cs
- HybridObjectCache.cs
- IntSecurity.cs
- DesignTimeXamlWriter.cs
- EncodingNLS.cs
- DeferredElementTreeState.cs
- FormsAuthenticationUserCollection.cs
- DataGridViewCheckBoxColumn.cs
- AttachmentCollection.cs
- XmlAttribute.cs
- TimeSpanOrInfiniteValidator.cs
- DBParameter.cs
- WebPartCollection.cs
- SqlEnums.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- MemberNameValidator.cs
- Preprocessor.cs
- MenuItemCollectionEditor.cs
- FileUtil.cs
- DBConnectionString.cs
- ProvidersHelper.cs
- LineBreakRecord.cs
- DataGridCaption.cs
- PackWebRequest.cs
- HelpFileFileNameEditor.cs
- TemplateBindingExtension.cs
- ViewSimplifier.cs
- StreamGeometryContext.cs
- AuthenticationModulesSection.cs
- InputScopeAttribute.cs
- Trace.cs
- X509Chain.cs
- IChannel.cs
- WsdlInspector.cs
- Triangle.cs
- PackageDigitalSignature.cs
- FormatConvertedBitmap.cs
- TextRange.cs
- CompositeDispatchFormatter.cs
- MemberDomainMap.cs
- LineServicesCallbacks.cs