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
- TextOutput.cs
- DataServiceQueryProvider.cs
- VirtualDirectoryMapping.cs
- CachedPathData.cs
- AppSecurityManager.cs
- MgmtConfigurationRecord.cs
- Win32MouseDevice.cs
- EtwTrackingParticipant.cs
- EditCommandColumn.cs
- XmlQueryOutput.cs
- StreamGeometryContext.cs
- SettingsAttributes.cs
- URL.cs
- SqlWorkflowInstanceStoreLock.cs
- BmpBitmapDecoder.cs
- ProfileEventArgs.cs
- ConversionContext.cs
- TypeDelegator.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- CodeLinePragma.cs
- MD5CryptoServiceProvider.cs
- TemplateField.cs
- VarInfo.cs
- HtmlTableRow.cs
- RepeatBehavior.cs
- Type.cs
- TextEditorTables.cs
- GiveFeedbackEventArgs.cs
- PublisherMembershipCondition.cs
- BlockUIContainer.cs
- DataContract.cs
- XmlDataSource.cs
- DeploymentSectionCache.cs
- BindingSource.cs
- IResourceProvider.cs
- ExpressionConverter.cs
- PenContexts.cs
- _BaseOverlappedAsyncResult.cs
- SqlConnectionString.cs
- TrackingExtract.cs
- Membership.cs
- SafeFileHandle.cs
- InputLangChangeEvent.cs
- XmlDataSourceNodeDescriptor.cs
- ISO2022Encoding.cs
- VisualTarget.cs
- ReferenceService.cs
- ListViewInsertedEventArgs.cs
- DataGridTableStyleMappingNameEditor.cs
- TempFiles.cs
- DnsPermission.cs
- SerialErrors.cs
- ContentFileHelper.cs
- ConstraintStruct.cs
- GroupQuery.cs
- HttpConfigurationSystem.cs
- translator.cs
- RegularExpressionValidator.cs
- NCryptSafeHandles.cs
- TraceLog.cs
- WSTrustFeb2005.cs
- PropertyValueUIItem.cs
- DataBindingList.cs
- Int64AnimationUsingKeyFrames.cs
- DefaultMemberAttribute.cs
- SecurityTokenAuthenticator.cs
- ObjectReaderCompiler.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- RequestQueue.cs
- ClientSettingsProvider.cs
- Type.cs
- OpenFileDialog.cs
- AxImporter.cs
- WebPartUtil.cs
- cryptoapiTransform.cs
- UnsupportedPolicyOptionsException.cs
- Variable.cs
- DecoderReplacementFallback.cs
- ErrorEventArgs.cs
- GeneralTransform3DGroup.cs
- FigureParaClient.cs
- AssertSection.cs
- SafeViewOfFileHandle.cs
- XmlDownloadManager.cs
- OracleMonthSpan.cs
- ProcessThreadCollection.cs
- StorageAssociationSetMapping.cs
- WindowsGraphics2.cs
- ObjectConverter.cs
- ReflectionServiceProvider.cs
- CancelEventArgs.cs
- BitmapEffectState.cs
- QueryOperationResponseOfT.cs
- ClosableStream.cs
- MessageFilter.cs
- StorageComplexTypeMapping.cs
- cookieexception.cs
- RawAppCommandInputReport.cs
- _DisconnectOverlappedAsyncResult.cs
- GlobalizationSection.cs