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
- parserscommon.cs
- InputMethodStateChangeEventArgs.cs
- ToolStripSystemRenderer.cs
- BinaryMethodMessage.cs
- DataGridSortCommandEventArgs.cs
- Int32KeyFrameCollection.cs
- X509ChainPolicy.cs
- LicenseContext.cs
- VariableAction.cs
- AmbiguousMatchException.cs
- ManagementScope.cs
- SafeNativeMethods.cs
- DependencyObjectType.cs
- CheckBoxFlatAdapter.cs
- TypeSystemProvider.cs
- AppendHelper.cs
- XmlElementAttribute.cs
- DataSourceHelper.cs
- EmptyControlCollection.cs
- JoinElimination.cs
- XmlSchemaDocumentation.cs
- CryptoStream.cs
- Pool.cs
- HoistedLocals.cs
- AssertSection.cs
- ChannelServices.cs
- ManifestSignatureInformation.cs
- MatrixStack.cs
- FigureHelper.cs
- LabelLiteral.cs
- XmlAttributeAttribute.cs
- DataGridCellAutomationPeer.cs
- Delegate.cs
- RecommendedAsConfigurableAttribute.cs
- ChainOfResponsibility.cs
- MemberInfoSerializationHolder.cs
- MD5.cs
- HttpNamespaceReservationInstallComponent.cs
- PartialTrustVisibleAssemblyCollection.cs
- EventlogProvider.cs
- TdsParserStaticMethods.cs
- TableRow.cs
- FileNameEditor.cs
- PackUriHelper.cs
- OrthographicCamera.cs
- QueryAccessibilityHelpEvent.cs
- Int16Animation.cs
- ImagingCache.cs
- VoiceChangeEventArgs.cs
- HtmlShim.cs
- documentsequencetextcontainer.cs
- Semaphore.cs
- MiniLockedBorderGlyph.cs
- XmlSerializationGeneratedCode.cs
- DrawingBrush.cs
- ObservableDictionary.cs
- LineUtil.cs
- WorkflowView.cs
- BamlTreeNode.cs
- MatrixUtil.cs
- BaseParser.cs
- RedirectionProxy.cs
- ClientRoleProvider.cs
- PreviewPageInfo.cs
- WorkflowViewStateService.cs
- HtmlHistory.cs
- NativeWindow.cs
- AsymmetricSignatureDeformatter.cs
- ListBindingConverter.cs
- RunInstallerAttribute.cs
- TabletCollection.cs
- SessionEndedEventArgs.cs
- Binding.cs
- ExtensionWindowResizeGrip.cs
- HttpHandlerActionCollection.cs
- CustomValidator.cs
- ValidatorCompatibilityHelper.cs
- DoubleCollectionValueSerializer.cs
- SpecularMaterial.cs
- XmlSchemaInfo.cs
- PointF.cs
- BitmapEffectOutputConnector.cs
- SerializationFieldInfo.cs
- CloudCollection.cs
- ToolboxBitmapAttribute.cs
- TextHintingModeValidation.cs
- PrintPageEvent.cs
- DesigntimeLicenseContext.cs
- BaseCollection.cs
- CustomValidator.cs
- CustomTypeDescriptor.cs
- dataSvcMapFileLoader.cs
- SerializationInfoEnumerator.cs
- ZipIOExtraField.cs
- OpenTypeCommon.cs
- SendSecurityHeaderElementContainer.cs
- QilReference.cs
- EnumerableValidator.cs
- BuildProvidersCompiler.cs
- ControlParser.cs