Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexCompilationInfo.cs
- VariableAction.cs
- Parameter.cs
- DecoderFallback.cs
- RelatedCurrencyManager.cs
- ResourcePermissionBase.cs
- GridViewDesigner.cs
- XmlMemberMapping.cs
- NativeMethods.cs
- AnonymousIdentificationModule.cs
- DispatcherHookEventArgs.cs
- VerticalAlignConverter.cs
- SvcMapFileSerializer.cs
- FigureParaClient.cs
- TransformerTypeCollection.cs
- CodeSubDirectory.cs
- GridViewColumnHeader.cs
- CheckBoxRenderer.cs
- CodeTypeDelegate.cs
- Underline.cs
- EndpointDesigner.cs
- OdbcStatementHandle.cs
- PagerSettings.cs
- FixUpCollection.cs
- SQLInt64Storage.cs
- NotEqual.cs
- RequestTimeoutManager.cs
- GatewayIPAddressInformationCollection.cs
- StringComparer.cs
- TransformValueSerializer.cs
- HttpChannelHelpers.cs
- PrintPreviewControl.cs
- WebPermission.cs
- FileDialogCustomPlace.cs
- StructuredProperty.cs
- KeyValuePair.cs
- ExpressionList.cs
- RelationshipManager.cs
- OdbcCommand.cs
- ScrollProperties.cs
- DataListItemCollection.cs
- Calendar.cs
- BinarySecretKeyIdentifierClause.cs
- EnvelopedPkcs7.cs
- WebEventTraceProvider.cs
- ByteKeyFrameCollection.cs
- HandlerBase.cs
- InvocationExpression.cs
- SqlMethodAttribute.cs
- ToolboxCategory.cs
- rsa.cs
- FontUnit.cs
- RtType.cs
- DataGridViewUtilities.cs
- TextRange.cs
- WebPartEditVerb.cs
- SqlUserDefinedTypeAttribute.cs
- SourceFileBuildProvider.cs
- DependencyObjectType.cs
- InstalledFontCollection.cs
- SqlConnectionStringBuilder.cs
- InstalledFontCollection.cs
- TextTrailingWordEllipsis.cs
- BinaryUtilClasses.cs
- XPathConvert.cs
- SafeArrayRankMismatchException.cs
- SQLByteStorage.cs
- GeometryHitTestParameters.cs
- QueryContinueDragEventArgs.cs
- EllipseGeometry.cs
- NetworkInterface.cs
- Transform3DGroup.cs
- IItemProperties.cs
- DateTimeConverter2.cs
- MetaModel.cs
- SoapIgnoreAttribute.cs
- MarshalDirectiveException.cs
- ServerValidateEventArgs.cs
- HttpApplicationStateWrapper.cs
- CqlQuery.cs
- EventPrivateKey.cs
- XsdDateTime.cs
- HtmlToClrEventProxy.cs
- FontFamily.cs
- MetadataHelper.cs
- CaseInsensitiveComparer.cs
- ViewManagerAttribute.cs
- FtpWebRequest.cs
- StateDesigner.Helpers.cs
- PagedControl.cs
- ModelUIElement3D.cs
- EntitySetDataBindingList.cs
- RegexCaptureCollection.cs
- QilStrConcatenator.cs
- FixUp.cs
- ParseHttpDate.cs
- AuthorizationRuleCollection.cs
- StorageMappingFragment.cs
- ScrollChrome.cs
- BitmapImage.cs