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
- ServiceHttpHandlerFactory.cs
- Region.cs
- ButtonFlatAdapter.cs
- Command.cs
- LinqDataSourceDisposeEventArgs.cs
- TransportChannelFactory.cs
- DrawingBrush.cs
- ListenDesigner.cs
- ScrollChangedEventArgs.cs
- InternalControlCollection.cs
- OrderedDictionary.cs
- IDispatchConstantAttribute.cs
- Path.cs
- mediaeventargs.cs
- CodeCommentStatementCollection.cs
- SSmlParser.cs
- GenericsNotImplementedException.cs
- ScrollChrome.cs
- Preprocessor.cs
- ColorConverter.cs
- LinqDataSource.cs
- Tracer.cs
- RepeatButton.cs
- assertwrapper.cs
- ParameterRefs.cs
- X509Logo.cs
- TypeSemantics.cs
- PointF.cs
- ProcessHost.cs
- MsmqTransportSecurityElement.cs
- InProcStateClientManager.cs
- Geometry3D.cs
- AppSettingsExpressionBuilder.cs
- CodeConstructor.cs
- ScriptIgnoreAttribute.cs
- RewritingPass.cs
- KnownBoxes.cs
- SqlUnionizer.cs
- TreeNodeEventArgs.cs
- EventPrivateKey.cs
- CacheHelper.cs
- GridViewDesigner.cs
- CacheAxisQuery.cs
- AssertHelper.cs
- DbUpdateCommandTree.cs
- SequenceDesigner.cs
- CompilerError.cs
- EdmError.cs
- ExpandedWrapper.cs
- CodeCommentStatementCollection.cs
- AuthorizationRuleCollection.cs
- TextParagraphProperties.cs
- Pair.cs
- DefaultClaimSet.cs
- XmlLangPropertyAttribute.cs
- ProfileInfo.cs
- EnumType.cs
- ListViewContainer.cs
- RegisteredScript.cs
- AssociationTypeEmitter.cs
- ResizeGrip.cs
- BitFlagsGenerator.cs
- serverconfig.cs
- KeyboardEventArgs.cs
- SqlConnectionString.cs
- SoapIncludeAttribute.cs
- sqlcontext.cs
- XhtmlBasicCommandAdapter.cs
- NetPeerTcpBindingCollectionElement.cs
- ListViewItemMouseHoverEvent.cs
- XhtmlCssHandler.cs
- MaterialGroup.cs
- MultiplexingFormatMapping.cs
- ExeConfigurationFileMap.cs
- BindingOperations.cs
- BitmapDecoder.cs
- EdmType.cs
- RegularExpressionValidator.cs
- InheritanceAttribute.cs
- TagPrefixAttribute.cs
- Object.cs
- WebScriptMetadataMessage.cs
- FixedDocumentSequencePaginator.cs
- SamlAuthorizationDecisionClaimResource.cs
- ObjectManager.cs
- TargetInvocationException.cs
- PartManifestEntry.cs
- ExtenderProvidedPropertyAttribute.cs
- WebPartDescription.cs
- TimeSpanConverter.cs
- WebPartActionVerb.cs
- coordinator.cs
- ExpressionList.cs
- _ChunkParse.cs
- XmlILOptimizerVisitor.cs
- ConnectionConsumerAttribute.cs
- RadioButtonRenderer.cs
- XmlSerializerVersionAttribute.cs
- followingquery.cs
- OperationFormatter.cs