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
- InputLangChangeRequestEvent.cs
- NativeMethodsCLR.cs
- User.cs
- ToolStripContentPanel.cs
- TextTreeTextElementNode.cs
- QuadraticBezierSegment.cs
- Hyperlink.cs
- XmlSchemaObject.cs
- SystemWebCachingSectionGroup.cs
- SystemIPGlobalProperties.cs
- XmlDigitalSignatureProcessor.cs
- IISUnsafeMethods.cs
- WebServiceErrorEvent.cs
- ReferenceTypeElement.cs
- LineGeometry.cs
- RootAction.cs
- DbProviderFactories.cs
- DateTimeOffsetAdapter.cs
- CustomLineCap.cs
- PageThemeBuildProvider.cs
- Mutex.cs
- XmlSchemaComplexContentExtension.cs
- EdmToObjectNamespaceMap.cs
- EventOpcode.cs
- XmlValidatingReaderImpl.cs
- GenerateScriptTypeAttribute.cs
- GeometryDrawing.cs
- IImplicitResourceProvider.cs
- ObfuscateAssemblyAttribute.cs
- complextypematerializer.cs
- SyndicationFeedFormatter.cs
- HtmlTableRowCollection.cs
- WebPageTraceListener.cs
- HttpHandlerActionCollection.cs
- StringInfo.cs
- Separator.cs
- WebReferencesBuildProvider.cs
- AssemblySettingAttributes.cs
- EventSource.cs
- followingsibling.cs
- HandlerFactoryCache.cs
- OleServicesContext.cs
- TypeSystemHelpers.cs
- XmlDataSourceView.cs
- ProgressBarAutomationPeer.cs
- PolicyManager.cs
- ThreadAttributes.cs
- ProfessionalColors.cs
- HtmlElement.cs
- WebProxyScriptElement.cs
- GridView.cs
- GradientSpreadMethodValidation.cs
- DataAccessor.cs
- SymbolPair.cs
- WmlLiteralTextAdapter.cs
- DefaultProxySection.cs
- ConnectionsZoneDesigner.cs
- EdmProperty.cs
- PrintingPermissionAttribute.cs
- TableColumn.cs
- KeyedCollection.cs
- InvokeProviderWrapper.cs
- StateMachineWorkflow.cs
- ForwardPositionQuery.cs
- WebProxyScriptElement.cs
- HttpConfigurationContext.cs
- FacetEnabledSchemaElement.cs
- TransportSecurityProtocolFactory.cs
- XmlNodeChangedEventArgs.cs
- WorkflowPersistenceService.cs
- SmtpFailedRecipientException.cs
- ValueUtilsSmi.cs
- ViewValidator.cs
- _HeaderInfoTable.cs
- CommandHelpers.cs
- ParenExpr.cs
- ServerIdentity.cs
- IsolatedStorageFileStream.cs
- PieceNameHelper.cs
- SingleObjectCollection.cs
- OletxCommittableTransaction.cs
- SqlCaseSimplifier.cs
- RepeaterItem.cs
- PropertyValueChangedEvent.cs
- HitTestParameters.cs
- ViewSimplifier.cs
- WorkflowInstance.cs
- RijndaelManaged.cs
- SystemFonts.cs
- HttpContext.cs
- DefaultTraceListener.cs
- GroupQuery.cs
- TextView.cs
- loginstatus.cs
- SchemaHelper.cs
- ProviderCommandInfoUtils.cs
- HtmlShim.cs
- AstTree.cs
- ListenerServiceInstallComponent.cs
- RenderingBiasValidation.cs