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
- CustomWebEventKey.cs
- Header.cs
- WaitHandleCannotBeOpenedException.cs
- _NTAuthentication.cs
- SqlCacheDependency.cs
- CacheDependency.cs
- TextSimpleMarkerProperties.cs
- AnnotationResourceChangedEventArgs.cs
- NegatedCellConstant.cs
- XmlILAnnotation.cs
- SqlDataSourceQueryEditor.cs
- EtwTrace.cs
- ProfilePropertySettingsCollection.cs
- _IPv4Address.cs
- XmlSchemaComplexType.cs
- Propagator.JoinPropagator.cs
- PreProcessInputEventArgs.cs
- SystemWebCachingSectionGroup.cs
- LinearGradientBrush.cs
- BridgeDataReader.cs
- PhysicalAddress.cs
- TextPatternIdentifiers.cs
- OLEDB_Enum.cs
- ServerReliableChannelBinder.cs
- Window.cs
- AttributeQuery.cs
- XmlSchemaFacet.cs
- TypeRestriction.cs
- Permission.cs
- ConfigurationStrings.cs
- AssertHelper.cs
- ObjectManager.cs
- StaticFileHandler.cs
- ProjectionPathSegment.cs
- LogEntrySerializationException.cs
- SQLMoney.cs
- MenuItemBinding.cs
- WebPartExportVerb.cs
- TypeUtils.cs
- TemplateContent.cs
- SecurityKeyUsage.cs
- FontStretch.cs
- InvalidateEvent.cs
- ErrorWebPart.cs
- ExpressionBuilderContext.cs
- App.cs
- MultiPropertyDescriptorGridEntry.cs
- SynchronousChannel.cs
- ImageDrawing.cs
- ReverseInheritProperty.cs
- GenericEnumConverter.cs
- DefaultCommandConverter.cs
- DurationConverter.cs
- HtmlControl.cs
- MenuCommand.cs
- XmlSchemaInclude.cs
- TextOutput.cs
- PanelStyle.cs
- CodeExpressionRuleDeclaration.cs
- Line.cs
- EntityCollection.cs
- FirstQueryOperator.cs
- ExpanderAutomationPeer.cs
- Utils.cs
- DmlSqlGenerator.cs
- RotateTransform.cs
- HttpListenerRequest.cs
- InfiniteTimeSpanConverter.cs
- ScrollItemPatternIdentifiers.cs
- NetTcpBindingCollectionElement.cs
- DataGridItemCollection.cs
- ProcessHostMapPath.cs
- TransformedBitmap.cs
- TableCellCollection.cs
- CollectionType.cs
- AutomationEvent.cs
- WebPartCatalogCloseVerb.cs
- LongValidatorAttribute.cs
- AppSettingsReader.cs
- PackageStore.cs
- ComplexTypeEmitter.cs
- AccessibleObject.cs
- InkCanvasAutomationPeer.cs
- PropertyEmitterBase.cs
- CapabilitiesSection.cs
- StringArrayConverter.cs
- Animatable.cs
- RelationshipEnd.cs
- DataSourceControlBuilder.cs
- EndpointConfigContainer.cs
- ToolStripSplitButton.cs
- FormsAuthenticationEventArgs.cs
- Statements.cs
- GeometryHitTestResult.cs
- XPathAncestorQuery.cs
- HttpChannelBindingToken.cs
- XslNumber.cs
- MissingSatelliteAssemblyException.cs
- VectorCollectionConverter.cs
- XmlSchemaValidationException.cs