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
- CFStream.cs
- SyndicationFeed.cs
- TargetConverter.cs
- ReadOnlyDataSource.cs
- Timer.cs
- Enumerable.cs
- SmiEventSink_Default.cs
- ScriptControlDescriptor.cs
- ToolStripMenuItemDesigner.cs
- QueryOperatorEnumerator.cs
- SystemInformation.cs
- Control.cs
- ModelTypeConverter.cs
- _BufferOffsetSize.cs
- MarshalByValueComponent.cs
- VideoDrawing.cs
- SiteMapDataSourceView.cs
- WindowsContainer.cs
- BaseTemplateBuildProvider.cs
- ControlDesigner.cs
- AssociatedControlConverter.cs
- SystemTcpStatistics.cs
- Panel.cs
- WebServiceEnumData.cs
- PixelFormats.cs
- QueryOutputWriter.cs
- Authorization.cs
- SpellerHighlightLayer.cs
- xmlfixedPageInfo.cs
- TextBoxRenderer.cs
- _SSPISessionCache.cs
- login.cs
- DataTableClearEvent.cs
- ValueOfAction.cs
- UserValidatedEventArgs.cs
- HttpServerChannel.cs
- localization.cs
- BindingGraph.cs
- State.cs
- UpDownEvent.cs
- TableCell.cs
- XmlSchemaObject.cs
- EntityWithKeyStrategy.cs
- XmlAnyElementAttributes.cs
- RuntimeConfig.cs
- SelectionUIHandler.cs
- HttpPostProtocolImporter.cs
- CanonicalFontFamilyReference.cs
- NavigationFailedEventArgs.cs
- Type.cs
- UniformGrid.cs
- WaitForChangedResult.cs
- PeerNameResolver.cs
- ReturnType.cs
- SiteMembershipCondition.cs
- SqlDataSource.cs
- ViewSimplifier.cs
- XmlReturnWriter.cs
- PrimitiveType.cs
- ControlBuilder.cs
- GenericWebPart.cs
- ServiceModelConfigurationSection.cs
- oledbmetadatacollectionnames.cs
- PointLight.cs
- TextServicesContext.cs
- CultureData.cs
- ModelItem.cs
- CompositeFontParser.cs
- XmlText.cs
- QueryOptionExpression.cs
- RegionIterator.cs
- WebBrowserEvent.cs
- _SecureChannel.cs
- ErrorInfoXmlDocument.cs
- HttpCapabilitiesSectionHandler.cs
- XamlReaderHelper.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- StrongNameUtility.cs
- BamlVersionHeader.cs
- Interlocked.cs
- WindowInteropHelper.cs
- IPCCacheManager.cs
- DataGridCellInfo.cs
- PatternMatcher.cs
- Visitors.cs
- TreeViewHitTestInfo.cs
- SelectionGlyph.cs
- CookielessHelper.cs
- NavigatingCancelEventArgs.cs
- AttributeEmitter.cs
- XmlNamespaceMappingCollection.cs
- Freezable.cs
- FlowDocumentReaderAutomationPeer.cs
- BaseWebProxyFinder.cs
- CodeAccessSecurityEngine.cs
- NetworkInformationException.cs
- VisualProxy.cs
- CodeBlockBuilder.cs
- OrderByExpression.cs
- DBConnectionString.cs