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
- ScrollPattern.cs
- SortFieldComparer.cs
- NamespaceImport.cs
- HtmlTextArea.cs
- ImageListStreamer.cs
- FixedSOMTable.cs
- SqlRemoveConstantOrderBy.cs
- RequestUriProcessor.cs
- Win32Native.cs
- VisualStyleRenderer.cs
- SpecularMaterial.cs
- X509ChainElement.cs
- XmlDataCollection.cs
- AttributeQuery.cs
- ThicknessAnimationUsingKeyFrames.cs
- DeviceContext.cs
- UnorderedHashRepartitionStream.cs
- OutOfMemoryException.cs
- ToolboxItemCollection.cs
- EncryptedKey.cs
- HtmlInputRadioButton.cs
- SpecularMaterial.cs
- SafeReversePInvokeHandle.cs
- RefreshEventArgs.cs
- Transform.cs
- DeliveryRequirementsAttribute.cs
- OutputScope.cs
- ComPlusInstanceContextInitializer.cs
- FactoryGenerator.cs
- LeaseManager.cs
- NumericUpDown.cs
- LabelLiteral.cs
- Style.cs
- BasePattern.cs
- AttributeCallbackBuilder.cs
- WizardStepBase.cs
- Pen.cs
- ReaderWriterLock.cs
- AuthenticationServiceManager.cs
- SettingsPropertyIsReadOnlyException.cs
- PerformanceCounterCategory.cs
- StructuredTypeEmitter.cs
- SerialReceived.cs
- ButtonChrome.cs
- Message.cs
- UInt64Storage.cs
- NamedObjectList.cs
- WCFBuildProvider.cs
- XmlSchemaChoice.cs
- ConfigXmlElement.cs
- Axis.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataMemberConverter.cs
- CreateUserWizardStep.cs
- MenuCommands.cs
- ExtensionElement.cs
- TemplateControlBuildProvider.cs
- QilInvokeEarlyBound.cs
- Point4DValueSerializer.cs
- SqlLiftIndependentRowExpressions.cs
- DefaultConfirmation.cs
- BlobPersonalizationState.cs
- SqlCrossApplyToCrossJoin.cs
- XmlQueryRuntime.cs
- CodeActivityContext.cs
- TraceSection.cs
- WebPartExportVerb.cs
- WebAdminConfigurationHelper.cs
- EncoderParameter.cs
- ButtonChrome.cs
- AddingNewEventArgs.cs
- TcpChannelFactory.cs
- AvTraceDetails.cs
- XmlSchemaType.cs
- EncoderFallback.cs
- DecimalAnimation.cs
- PaintValueEventArgs.cs
- MailDefinition.cs
- Int64KeyFrameCollection.cs
- TableSectionStyle.cs
- RolePrincipal.cs
- ExecutionEngineException.cs
- DataTableExtensions.cs
- SqlPersonalizationProvider.cs
- GridItem.cs
- DataListItemEventArgs.cs
- BookmarkScopeInfo.cs
- ViewStateException.cs
- CompositeScriptReferenceEventArgs.cs
- ComPlusInstanceContextInitializer.cs
- StylusButtonCollection.cs
- XamlStackWriter.cs
- DataListItemCollection.cs
- EnglishPluralizationService.cs
- MetadataUtil.cs
- InvalidComObjectException.cs
- hresults.cs
- AssociationType.cs
- DataGridPagerStyle.cs
- TextTreeTextElementNode.cs