Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TransformerInfo.cs
- CursorInteropHelper.cs
- Funcletizer.cs
- COSERVERINFO.cs
- TrustLevel.cs
- ColorTranslator.cs
- UserControlBuildProvider.cs
- RoutedCommand.cs
- MembershipSection.cs
- PointF.cs
- BigInt.cs
- MetadataItemCollectionFactory.cs
- WinInet.cs
- ObjectListItem.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataTableCollection.cs
- OperationDescriptionCollection.cs
- InvalidateEvent.cs
- ExeConfigurationFileMap.cs
- VisualBrush.cs
- HttpCapabilitiesEvaluator.cs
- SoapFormatterSinks.cs
- TextUtf8RawTextWriter.cs
- COM2TypeInfoProcessor.cs
- NullRuntimeConfig.cs
- ICollection.cs
- EntityClassGenerator.cs
- OleDbTransaction.cs
- MultipleViewPattern.cs
- DataViewManager.cs
- IPGlobalProperties.cs
- UseAttributeSetsAction.cs
- CompiledQuery.cs
- EncodingStreamWrapper.cs
- SchemaManager.cs
- ColumnHeaderConverter.cs
- EncodingInfo.cs
- ReadOnlyCollectionBuilder.cs
- ItemCheckEvent.cs
- GetWinFXPath.cs
- SendSecurityHeaderElementContainer.cs
- XamlPointCollectionSerializer.cs
- DesignerVerbCollection.cs
- MsmqInputChannelListener.cs
- BatchParser.cs
- ServiceErrorHandler.cs
- ListenerElementsCollection.cs
- TemplateField.cs
- TiffBitmapEncoder.cs
- ManualResetEventSlim.cs
- SqlErrorCollection.cs
- PropertyHelper.cs
- XhtmlStyleClass.cs
- SapiGrammar.cs
- EarlyBoundInfo.cs
- TemplateContentLoader.cs
- TextTreeUndo.cs
- ServiceDescriptionImporter.cs
- Authorization.cs
- SpotLight.cs
- OrthographicCamera.cs
- MetadataCache.cs
- AuthenticationException.cs
- FatalException.cs
- Metadata.cs
- RoleManagerModule.cs
- D3DImage.cs
- RewritingPass.cs
- CompositeActivityTypeDescriptor.cs
- PointAnimationClockResource.cs
- HtmlInputHidden.cs
- RemotingAttributes.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Transform3D.cs
- CacheForPrimitiveTypes.cs
- ListViewGroup.cs
- MimeParameter.cs
- SmtpNegotiateAuthenticationModule.cs
- ArraySegment.cs
- EncoderBestFitFallback.cs
- DPCustomTypeDescriptor.cs
- QuerySettings.cs
- BlurEffect.cs
- UIElementPropertyUndoUnit.cs
- Double.cs
- MemoryFailPoint.cs
- Converter.cs
- CharacterMetricsDictionary.cs
- RenderDataDrawingContext.cs
- XpsSerializationManager.cs
- TextFormatterImp.cs
- ParserStreamGeometryContext.cs
- GridViewRowPresenter.cs
- NonNullItemCollection.cs
- MenuCommands.cs
- ResumeStoryboard.cs
- EntityDataSourceValidationException.cs
- TreeViewItemAutomationPeer.cs
- XmlCollation.cs
- CodeGenerationManager.cs