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
- OracleRowUpdatingEventArgs.cs
- GPPOINTF.cs
- CodeDomComponentSerializationService.cs
- XslTransform.cs
- webclient.cs
- RadialGradientBrush.cs
- XmlnsCompatibleWithAttribute.cs
- ImageCodecInfo.cs
- ObjectQuery_EntitySqlExtensions.cs
- Win32.cs
- SamlEvidence.cs
- httpapplicationstate.cs
- ToolStripItemEventArgs.cs
- DocumentOrderQuery.cs
- ProjectionCamera.cs
- ByteStream.cs
- XPathChildIterator.cs
- EndPoint.cs
- ModelTypeConverter.cs
- ScrollChangedEventArgs.cs
- RelationshipConverter.cs
- DelegatingConfigHost.cs
- XPathDocumentNavigator.cs
- NoPersistHandle.cs
- TimeSpan.cs
- SimpleHandlerFactory.cs
- StylusSystemGestureEventArgs.cs
- _Events.cs
- ParserHooks.cs
- FigureParagraph.cs
- CompilerScopeManager.cs
- ImageListStreamer.cs
- FragmentNavigationEventArgs.cs
- MaskInputRejectedEventArgs.cs
- JoinElimination.cs
- FrameworkElement.cs
- ChildrenQuery.cs
- XmlWriter.cs
- Vector3DCollection.cs
- ToolStripItem.cs
- SwitchCase.cs
- TransformCryptoHandle.cs
- SerializationObjectManager.cs
- AppearanceEditorPart.cs
- BasicCellRelation.cs
- DataGridViewLinkCell.cs
- PartialList.cs
- ListViewItem.cs
- BindableTemplateBuilder.cs
- QilNode.cs
- SerializationInfoEnumerator.cs
- ButtonPopupAdapter.cs
- XComponentModel.cs
- HttpModuleAction.cs
- ToolStripSplitButton.cs
- VarInfo.cs
- ObjectCache.cs
- ServiceContractListItem.cs
- CaseStatement.cs
- WebUtility.cs
- BigInt.cs
- NavigatorInvalidBodyAccessException.cs
- ReliableSessionElement.cs
- KeyInfo.cs
- SiteMapProvider.cs
- JoinSymbol.cs
- SliderAutomationPeer.cs
- PasswordTextContainer.cs
- WebPartConnectionsCancelEventArgs.cs
- ImageDrawing.cs
- Table.cs
- TreeView.cs
- TextServicesProperty.cs
- TypedRowGenerator.cs
- SmtpNegotiateAuthenticationModule.cs
- ADMembershipProvider.cs
- ProxyGenerationError.cs
- CryptographicAttribute.cs
- CodeTypeDeclaration.cs
- BoundField.cs
- TakeOrSkipQueryOperator.cs
- COM2PropertyDescriptor.cs
- ComplexBindingPropertiesAttribute.cs
- ImageCodecInfo.cs
- DataGridViewDataErrorEventArgs.cs
- TracingConnection.cs
- LocationFactory.cs
- KeyedHashAlgorithm.cs
- SiteMapNodeCollection.cs
- UrlPath.cs
- SubMenuStyle.cs
- Compiler.cs
- InstanceCollisionException.cs
- GridViewColumnCollection.cs
- DataGridViewColumnCollection.cs
- SymDocumentType.cs
- ExternalDataExchangeClient.cs
- ImageMapEventArgs.cs
- UrlPath.cs
- ConditionalBranch.cs