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
- IgnoreSectionHandler.cs
- RijndaelManaged.cs
- CommandLibraryHelper.cs
- XPathNodeIterator.cs
- XmlSchemaAnyAttribute.cs
- DbProviderServices.cs
- MonitoringDescriptionAttribute.cs
- UpnEndpointIdentityExtension.cs
- IriParsingElement.cs
- ExceptionUtil.cs
- XmlSchemaExternal.cs
- QilInvokeEarlyBound.cs
- StateBag.cs
- BitHelper.cs
- DescendantOverDescendantQuery.cs
- DataGridViewCellEventArgs.cs
- FigureParaClient.cs
- HttpServerUtilityWrapper.cs
- ServicePoint.cs
- DataExpression.cs
- MetadataSerializer.cs
- DataMisalignedException.cs
- Ticks.cs
- WorkerRequest.cs
- OdbcParameter.cs
- EncodingInfo.cs
- StylusPointPropertyInfoDefaults.cs
- KeyedQueue.cs
- MonthChangedEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- SQLInt16.cs
- HyperLink.cs
- RowCache.cs
- XmlValidatingReader.cs
- Action.cs
- reliableinputsessionchannel.cs
- DocumentCollection.cs
- FlowNode.cs
- NotFiniteNumberException.cs
- ProtectedConfigurationSection.cs
- DirectoryInfo.cs
- WasNotInstalledException.cs
- Drawing.cs
- MenuCommandService.cs
- ShutDownListener.cs
- Command.cs
- TypeDependencyAttribute.cs
- XmlILOptimizerVisitor.cs
- ByteConverter.cs
- RIPEMD160.cs
- CommonRemoteMemoryBlock.cs
- ScopedMessagePartSpecification.cs
- PropertyInformationCollection.cs
- XmlElementList.cs
- Connector.xaml.cs
- DebugView.cs
- FormViewDeletedEventArgs.cs
- FreezableOperations.cs
- QueryNode.cs
- LinkConverter.cs
- HtmlInputHidden.cs
- NamespaceTable.cs
- DisableDpiAwarenessAttribute.cs
- TabItemAutomationPeer.cs
- DataGridViewIntLinkedList.cs
- DesigntimeLicenseContext.cs
- HiddenFieldPageStatePersister.cs
- BitmapEffect.cs
- HGlobalSafeHandle.cs
- ErrorEventArgs.cs
- SID.cs
- TimeoutValidationAttribute.cs
- AudioStateChangedEventArgs.cs
- CodePageUtils.cs
- SqlCommand.cs
- UserPreferenceChangedEventArgs.cs
- InputMethodStateTypeInfo.cs
- Contracts.cs
- HtmlPhoneCallAdapter.cs
- DesignerSerializationVisibilityAttribute.cs
- CodeSubDirectoriesCollection.cs
- HtmlTableCell.cs
- CalendarModeChangedEventArgs.cs
- QuaternionKeyFrameCollection.cs
- TextServicesHost.cs
- WindowsMenu.cs
- HwndHost.cs
- DebugControllerThread.cs
- MemberHolder.cs
- DbException.cs
- OleDbRowUpdatedEvent.cs
- FaultContractInfo.cs
- Cursors.cs
- SHA384CryptoServiceProvider.cs
- ListViewGroupItemCollection.cs
- GlyphElement.cs
- FileCodeGroup.cs
- TimelineCollection.cs
- ContentOperations.cs
- RangeContentEnumerator.cs