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
- ProfilePropertyNameValidator.cs
- QuadraticEase.cs
- Normalization.cs
- LogicalMethodInfo.cs
- RSAPKCS1SignatureFormatter.cs
- updatecommandorderer.cs
- InvalidOperationException.cs
- ClientScriptManagerWrapper.cs
- SchemaCollectionCompiler.cs
- HierarchicalDataTemplate.cs
- __Error.cs
- ButtonColumn.cs
- NamespaceList.cs
- XmlUtil.cs
- DynamicMethod.cs
- UriExt.cs
- ObjectDataSourceView.cs
- ControlValuePropertyAttribute.cs
- OracleInfoMessageEventArgs.cs
- NamespaceDecl.cs
- ASCIIEncoding.cs
- ResourceSet.cs
- xmlglyphRunInfo.cs
- InvalidCastException.cs
- PolygonHotSpot.cs
- ListBoxItemWrapperAutomationPeer.cs
- SessionIDManager.cs
- PolyQuadraticBezierSegment.cs
- SID.cs
- NativeRightsManagementAPIsStructures.cs
- Rect3DValueSerializer.cs
- IsolatedStoragePermission.cs
- Rotation3DKeyFrameCollection.cs
- CompilerLocalReference.cs
- RouteParametersHelper.cs
- SpnegoTokenAuthenticator.cs
- TextProviderWrapper.cs
- XmlEntityReference.cs
- CharacterMetrics.cs
- Int32AnimationBase.cs
- CodeSnippetCompileUnit.cs
- XsdSchemaFileEditor.cs
- SolidColorBrush.cs
- DataListAutoFormat.cs
- SQLDoubleStorage.cs
- ObjectReaderCompiler.cs
- GetLedgerRequest.cs
- XmlnsDefinitionAttribute.cs
- Storyboard.cs
- ClientTarget.cs
- BaseCAMarshaler.cs
- TypeSystemProvider.cs
- CacheDependency.cs
- FileDialogCustomPlaces.cs
- ParamArrayAttribute.cs
- GenericsNotImplementedException.cs
- SchemaNotation.cs
- XmlArrayAttribute.cs
- DefaultMemberAttribute.cs
- LastQueryOperator.cs
- SslStreamSecurityBindingElement.cs
- DirectoryNotFoundException.cs
- InternalMappingException.cs
- hresults.cs
- XmlSchemaCompilationSettings.cs
- DrawingImage.cs
- XPathDocument.cs
- InvalidPropValue.cs
- odbcmetadatacolumnnames.cs
- HtmlInputReset.cs
- CodeTypeDeclaration.cs
- Vector3DValueSerializer.cs
- TextBreakpoint.cs
- ObjRef.cs
- DesignObjectWrapper.cs
- BrowserTree.cs
- DataReaderContainer.cs
- SpAudioStreamWrapper.cs
- XmlSchema.cs
- CodeSubDirectory.cs
- BaseUriHelper.cs
- InternalControlCollection.cs
- WebServiceResponse.cs
- DataRowExtensions.cs
- TypeResolvingOptionsAttribute.cs
- FilterElement.cs
- CookieParameter.cs
- Root.cs
- DataRowChangeEvent.cs
- AsyncOperation.cs
- MimeMultiPart.cs
- XmlSortKey.cs
- XmlComment.cs
- TypeElement.cs
- WebPartDescription.cs
- Token.cs
- MasterPageBuildProvider.cs
- DecimalFormatter.cs
- EpmTargetPathSegment.cs
- DesignerValidationSummaryAdapter.cs