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
- XamlInt32CollectionSerializer.cs
- AssemblyAttributesGoHere.cs
- AnnotationStore.cs
- BamlRecords.cs
- Underline.cs
- WhitespaceRuleReader.cs
- OLEDB_Enum.cs
- XmlSchemaComplexContent.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- DataControlFieldsEditor.cs
- ImageBrush.cs
- SendDesigner.xaml.cs
- ServiceManager.cs
- Expr.cs
- EmptyElement.cs
- ChannelBinding.cs
- ToolStripItemEventArgs.cs
- ClientSession.cs
- EventSetter.cs
- EmptyReadOnlyDictionaryInternal.cs
- UIElement3D.cs
- HMACSHA512.cs
- NetCodeGroup.cs
- PlatformCulture.cs
- SemaphoreSecurity.cs
- EventLogSession.cs
- ToolStripItemDataObject.cs
- PerformanceCounterPermission.cs
- RequestSecurityToken.cs
- DateTimeFormat.cs
- DataBoundControl.cs
- HasCopySemanticsAttribute.cs
- SmiSettersStream.cs
- SqlProcedureAttribute.cs
- mediaclock.cs
- Drawing.cs
- XpsThumbnail.cs
- HttpChannelHelpers.cs
- FrameworkPropertyMetadata.cs
- AbsoluteQuery.cs
- recordstate.cs
- HttpPostedFile.cs
- RIPEMD160.cs
- UIHelper.cs
- DeclaredTypeValidator.cs
- GPPOINT.cs
- EventLogEntryCollection.cs
- ColumnClickEvent.cs
- AxisAngleRotation3D.cs
- NoPersistProperty.cs
- NotifyIcon.cs
- _NegoState.cs
- VisualBasicSettingsHandler.cs
- WebPartAddingEventArgs.cs
- XmlAttributes.cs
- BufferModeSettings.cs
- CompositionAdorner.cs
- FolderLevelBuildProviderCollection.cs
- TypeValidationEventArgs.cs
- ExtendedProtectionPolicy.cs
- ValueProviderWrapper.cs
- HiddenFieldPageStatePersister.cs
- WindowsGraphics2.cs
- ObsoleteAttribute.cs
- WebExceptionStatus.cs
- HtmlToClrEventProxy.cs
- BaseTemplateCodeDomTreeGenerator.cs
- OrderByExpression.cs
- ImageAttributes.cs
- WindowsTab.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ConnectionManagementSection.cs
- HyperLinkDesigner.cs
- CompilerParameters.cs
- FacetValueContainer.cs
- QilTypeChecker.cs
- Wildcard.cs
- ProjectionNode.cs
- SettingsProperty.cs
- SetterTriggerConditionValueConverter.cs
- DataSetFieldSchema.cs
- PersonalizationProviderHelper.cs
- ContainerControlDesigner.cs
- CheckBoxField.cs
- RuntimeTrackingProfile.cs
- OutputCacheSection.cs
- CanExecuteRoutedEventArgs.cs
- SmiEventSink_Default.cs
- XmlAttributeCollection.cs
- XmlILModule.cs
- NativeMethods.cs
- ManipulationStartedEventArgs.cs
- DesignerActionMethodItem.cs
- ObsoleteAttribute.cs
- DbDataRecord.cs
- TakeQueryOptionExpression.cs
- RequestValidator.cs
- Base64Encoder.cs
- Misc.cs
- SemanticKeyElement.cs