Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PagePropertiesChangingEventArgs.cs
- ParamArrayAttribute.cs
- VisualBrush.cs
- Sequence.cs
- LocalFileSettingsProvider.cs
- ReadOnlyAttribute.cs
- TemplateControlCodeDomTreeGenerator.cs
- GenericRootAutomationPeer.cs
- ItemCollection.cs
- MasterPageParser.cs
- XhtmlBasicLabelAdapter.cs
- Convert.cs
- SiteMapNodeItemEventArgs.cs
- BCLDebug.cs
- HMACSHA512.cs
- HostingPreferredMapPath.cs
- TitleStyle.cs
- SpellerHighlightLayer.cs
- SubpageParagraph.cs
- SimpleMailWebEventProvider.cs
- MDIClient.cs
- KeyEvent.cs
- InvalidCastException.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ToggleButtonAutomationPeer.cs
- XmlSortKey.cs
- FontWeightConverter.cs
- EtwProvider.cs
- DataListCommandEventArgs.cs
- InfiniteTimeSpanConverter.cs
- IIS7WorkerRequest.cs
- ContentFileHelper.cs
- AliasGenerator.cs
- DBCommandBuilder.cs
- PromptEventArgs.cs
- WmfPlaceableFileHeader.cs
- SimpleModelProvider.cs
- StoreItemCollection.cs
- PlainXmlSerializer.cs
- XmlConvert.cs
- NonSerializedAttribute.cs
- SecurityContext.cs
- ExtensionQuery.cs
- SiteMapDataSource.cs
- ServiceCredentialsElement.cs
- TableParaClient.cs
- SharedUtils.cs
- WebScriptMetadataMessage.cs
- FileVersion.cs
- Expr.cs
- SharedHttpsTransportManager.cs
- PeerName.cs
- ParamArrayAttribute.cs
- DirectionalLight.cs
- ImageMetadata.cs
- ValuePatternIdentifiers.cs
- SubstitutionList.cs
- Thread.cs
- Module.cs
- ScaleTransform.cs
- ButtonBaseDesigner.cs
- CodeMemberEvent.cs
- SmiRecordBuffer.cs
- DivideByZeroException.cs
- Transform.cs
- BlobPersonalizationState.cs
- CommentEmitter.cs
- ObjectSet.cs
- SqlParameterCollection.cs
- WebPartConnectionsEventArgs.cs
- TextDecorationCollection.cs
- HTTPNotFoundHandler.cs
- EventSinkHelperWriter.cs
- ExpressionBuilderCollection.cs
- CheckPair.cs
- WebPartAddingEventArgs.cs
- ProcessManager.cs
- CallContext.cs
- SqlRemoveConstantOrderBy.cs
- EncoderFallback.cs
- HwndAppCommandInputProvider.cs
- UIElement3DAutomationPeer.cs
- UriSection.cs
- XPathAncestorIterator.cs
- IDispatchConstantAttribute.cs
- ExtentCqlBlock.cs
- OrderedParallelQuery.cs
- SettingsAttributes.cs
- processwaithandle.cs
- _ScatterGatherBuffers.cs
- PropertyChangeTracker.cs
- ReflectTypeDescriptionProvider.cs
- ImageFormatConverter.cs
- IxmlLineInfo.cs
- CodeBinaryOperatorExpression.cs
- StrokeNodeEnumerator.cs
- NonBatchDirectoryCompiler.cs
- CounterSetInstanceCounterDataSet.cs
- PostBackOptions.cs
- NeutralResourcesLanguageAttribute.cs