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
- Translator.cs
- DetailsViewInsertEventArgs.cs
- Vertex.cs
- WebPartMenu.cs
- ViewLoader.cs
- ModelItemDictionaryImpl.cs
- WpfWebRequestHelper.cs
- ChtmlTextWriter.cs
- WindowShowOrOpenTracker.cs
- RegexMatch.cs
- ModulesEntry.cs
- HtmlForm.cs
- formatter.cs
- XmlNodeList.cs
- AuthorizationRule.cs
- EventLogEntry.cs
- ScriptControlDescriptor.cs
- CodeAssignStatement.cs
- HttpStreamXmlDictionaryWriter.cs
- XmlChoiceIdentifierAttribute.cs
- Rect.cs
- ListBindingHelper.cs
- Lasso.cs
- OleDbException.cs
- CustomWebEventKey.cs
- RoleManagerSection.cs
- BaseValidator.cs
- Queue.cs
- Figure.cs
- PeerEndPoint.cs
- altserialization.cs
- SqlCommandAsyncResult.cs
- ObjectListDataBindEventArgs.cs
- OdbcException.cs
- AtlasWeb.Designer.cs
- ListBoxDesigner.cs
- FilterQuery.cs
- WebRequestModuleElementCollection.cs
- EntityClientCacheEntry.cs
- ServiceDescriptionReflector.cs
- SchemaContext.cs
- Scalars.cs
- AppearanceEditorPart.cs
- AspNetSynchronizationContext.cs
- PhoneCallDesigner.cs
- EllipseGeometry.cs
- NodeLabelEditEvent.cs
- SchemaImporterExtension.cs
- Soap11ServerProtocol.cs
- SafeNativeMethods.cs
- SiteMapNodeItemEventArgs.cs
- ColumnMapTranslator.cs
- UnitySerializationHolder.cs
- X509SecurityTokenAuthenticator.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- PrimitiveXmlSerializers.cs
- PlatformCulture.cs
- AutoResizedEvent.cs
- CacheAxisQuery.cs
- ConfigPathUtility.cs
- FontInfo.cs
- IRCollection.cs
- thaishape.cs
- DecoderNLS.cs
- CellQuery.cs
- ChineseLunisolarCalendar.cs
- ObjectDataSourceEventArgs.cs
- CreateUserWizardDesigner.cs
- OraclePermissionAttribute.cs
- DirectionalLight.cs
- xsdvalidator.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SmiRecordBuffer.cs
- DataViewSettingCollection.cs
- BitmapMetadataBlob.cs
- ContentElement.cs
- ResXResourceSet.cs
- WindowShowOrOpenTracker.cs
- SoapServerMessage.cs
- LambdaCompiler.Expressions.cs
- StopStoryboard.cs
- EnumValAlphaComparer.cs
- PropertyChangingEventArgs.cs
- CompositeDataBoundControl.cs
- WorkflowLayouts.cs
- HttpRuntime.cs
- TextSerializer.cs
- DefaultPrintController.cs
- path.cs
- Light.cs
- ProtocolsSection.cs
- PropertyTabChangedEvent.cs
- WmlValidatorAdapter.cs
- TreeViewTemplateSelector.cs
- TimeStampChecker.cs
- CmsInterop.cs
- SmiConnection.cs
- ComponentResourceManager.cs
- SequenceDesigner.cs
- WorkflowExecutor.cs