Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / UnauthorizedAccessException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- WebReference.cs
- EnumDataContract.cs
- ConnectionPoolManager.cs
- ISO2022Encoding.cs
- DocumentReferenceCollection.cs
- Utilities.cs
- NotFiniteNumberException.cs
- IPCCacheManager.cs
- XmlKeywords.cs
- ServicePoint.cs
- PopupRootAutomationPeer.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ContextDataSourceView.cs
- InputProviderSite.cs
- AsyncParams.cs
- PenLineJoinValidation.cs
- AppSettingsExpressionBuilder.cs
- Parser.cs
- Comparer.cs
- ToolStripCollectionEditor.cs
- KeyBinding.cs
- Span.cs
- TagPrefixCollection.cs
- Vector3DAnimationBase.cs
- NonBatchDirectoryCompiler.cs
- ScrollChrome.cs
- CodeEntryPointMethod.cs
- DirectionalLight.cs
- DataGridViewCell.cs
- SamlAction.cs
- DetailsViewActionList.cs
- SchemaManager.cs
- SecurityKeyUsage.cs
- MissingMemberException.cs
- MultiPageTextView.cs
- ExpressionBindingCollection.cs
- SimpleWebHandlerParser.cs
- ToolStripProgressBar.cs
- DataControlFieldCollection.cs
- CaseCqlBlock.cs
- AccessDataSource.cs
- CqlIdentifiers.cs
- SqlConnectionPoolProviderInfo.cs
- ObjectView.cs
- BaseValidator.cs
- FunctionUpdateCommand.cs
- DbConnectionPoolGroupProviderInfo.cs
- QilStrConcatenator.cs
- AssemblyInfo.cs
- SyntaxCheck.cs
- SourceSwitch.cs
- CompiledXpathExpr.cs
- HeaderUtility.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- IResourceProvider.cs
- OptimizerPatterns.cs
- ColumnReorderedEventArgs.cs
- GeneralTransform3DCollection.cs
- EventLevel.cs
- NullableIntMinMaxAggregationOperator.cs
- mansign.cs
- WorkflowApplicationAbortedEventArgs.cs
- ContentPosition.cs
- FormsAuthenticationConfiguration.cs
- CodeGenerator.cs
- Set.cs
- TableAutomationPeer.cs
- ObjectDataSourceEventArgs.cs
- DesignerLoader.cs
- MsmqNonTransactedPoisonHandler.cs
- AppDomainProtocolHandler.cs
- Error.cs
- ContextStack.cs
- TranslateTransform.cs
- DiscreteKeyFrames.cs
- FieldAccessException.cs
- WinEventHandler.cs
- PeerEndPoint.cs
- RotateTransform.cs
- PointLightBase.cs
- KeyNotFoundException.cs
- _emptywebproxy.cs
- CharacterShapingProperties.cs
- TableAutomationPeer.cs
- oledbmetadatacollectionnames.cs
- ParameterReplacerVisitor.cs
- SchemaMapping.cs
- ArrayWithOffset.cs
- AnnotationHighlightLayer.cs
- ListViewGroup.cs
- UmAlQuraCalendar.cs
- RewritingValidator.cs
- FigureParaClient.cs
- GeometryHitTestParameters.cs
- LinkAreaEditor.cs
- KeySplineConverter.cs
- CriticalFinalizerObject.cs
- ExceptionTrace.cs
- SqlXml.cs
- RepeatButton.cs