Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DropDownButton.cs
- VirtualizedItemProviderWrapper.cs
- EntityDataSourceReferenceGroup.cs
- NameValueConfigurationCollection.cs
- CompModHelpers.cs
- RelationalExpressions.cs
- FacetDescriptionElement.cs
- WebConfigurationManager.cs
- X509UI.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WindowCollection.cs
- AlignmentYValidation.cs
- GradientSpreadMethodValidation.cs
- TextTreeFixupNode.cs
- JsonServiceDocumentSerializer.cs
- Identity.cs
- RubberbandSelector.cs
- EntityWrapperFactory.cs
- ToolStripControlHost.cs
- DynamicVirtualDiscoSearcher.cs
- WsdlBuildProvider.cs
- printdlgexmarshaler.cs
- Html32TextWriter.cs
- FixedTextContainer.cs
- SafeViewOfFileHandle.cs
- WorkflowPrinting.cs
- MembershipUser.cs
- PassportPrincipal.cs
- RangeValuePatternIdentifiers.cs
- TabControlDesigner.cs
- ServerProtocol.cs
- PropertyNames.cs
- Transform.cs
- XmlSchemaNotation.cs
- TransformGroup.cs
- ButtonBase.cs
- HttpHeaderCollection.cs
- RelationshipNavigation.cs
- OleDbInfoMessageEvent.cs
- EdmType.cs
- XdrBuilder.cs
- Pair.cs
- TypeRefElement.cs
- ModelItemImpl.cs
- FixedStringLookup.cs
- CodeSubDirectoriesCollection.cs
- SqlDataSourceCommandEventArgs.cs
- AuthStoreRoleProvider.cs
- TimerElapsedEvenArgs.cs
- oledbconnectionstring.cs
- TableLayoutPanel.cs
- AuthorizationSection.cs
- HttpClientCertificate.cs
- TimeoutException.cs
- TableChangeProcessor.cs
- NumericExpr.cs
- DebugHandleTracker.cs
- QueryUtil.cs
- PerCallInstanceContextProvider.cs
- UriTemplateClientFormatter.cs
- RawAppCommandInputReport.cs
- SafeCertificateContext.cs
- CompositionTarget.cs
- ValueSerializerAttribute.cs
- SqlNode.cs
- SourceLineInfo.cs
- ProviderUtil.cs
- DataServiceKeyAttribute.cs
- ComPlusTypeValidator.cs
- ParameterToken.cs
- GACIdentityPermission.cs
- SendMailErrorEventArgs.cs
- RuntimeConfig.cs
- HttpCachePolicyWrapper.cs
- Compiler.cs
- OdbcConnectionPoolProviderInfo.cs
- ClientRolePrincipal.cs
- SQLConvert.cs
- ToolStripDesignerUtils.cs
- MoveSizeWinEventHandler.cs
- DictionaryEntry.cs
- DrawTreeNodeEventArgs.cs
- ProfileGroupSettingsCollection.cs
- SerializableTypeCodeDomSerializer.cs
- HttpDebugHandler.cs
- XmlSchemaIdentityConstraint.cs
- ArcSegment.cs
- DataGridCellClipboardEventArgs.cs
- MenuTracker.cs
- Message.cs
- MatrixAnimationUsingPath.cs
- FlowLayoutPanel.cs
- ComponentChangedEvent.cs
- DBConcurrencyException.cs
- HyperLinkStyle.cs
- VariableElement.cs
- SystemResources.cs
- NonParentingControl.cs
- WindowsFormsHelpers.cs
- storepermission.cs