Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / UnauthorizedAccessException.cs / 1 / 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); } 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); } 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
- DictionarySectionHandler.cs
- PinnedBufferMemoryStream.cs
- AliasGenerator.cs
- TabPage.cs
- PersistenceProvider.cs
- WeakHashtable.cs
- EventManager.cs
- XmlValueConverter.cs
- DataGridViewRowConverter.cs
- CallbackHandler.cs
- DataGridViewComboBoxCell.cs
- XmlILStorageConverter.cs
- WebBrowserNavigatedEventHandler.cs
- ButtonChrome.cs
- Ref.cs
- SeverityFilter.cs
- xsdvalidator.cs
- WebReferencesBuildProvider.cs
- TableLayoutSettings.cs
- ServiceOperationListItem.cs
- ConfigurationStrings.cs
- ScrollChrome.cs
- diagnosticsswitches.cs
- StringAttributeCollection.cs
- ResizingMessageFilter.cs
- TemplateControlCodeDomTreeGenerator.cs
- HtmlImage.cs
- DataControlPagerLinkButton.cs
- DbQueryCommandTree.cs
- DefaultValueAttribute.cs
- EntityReference.cs
- QuaternionAnimation.cs
- XmlDocumentFragment.cs
- FileVersion.cs
- TimelineCollection.cs
- NavigateUrlConverter.cs
- ProvidersHelper.cs
- UnmanagedMemoryStreamWrapper.cs
- ChangeBlockUndoRecord.cs
- BitStream.cs
- HttpCookieCollection.cs
- SimpleHandlerBuildProvider.cs
- CurrencyWrapper.cs
- HtmlInputImage.cs
- Pair.cs
- NamespaceInfo.cs
- TaiwanLunisolarCalendar.cs
- PlainXmlDeserializer.cs
- InkSerializer.cs
- SiteMapPath.cs
- WindowsScrollBarBits.cs
- XmlSchemaSubstitutionGroup.cs
- ParallelTimeline.cs
- Point3D.cs
- EpmContentSerializer.cs
- ShimAsPublicXamlType.cs
- MessageQueueTransaction.cs
- FixedSOMImage.cs
- Calendar.cs
- ObjRef.cs
- RelationshipType.cs
- SplitterEvent.cs
- Int32KeyFrameCollection.cs
- ProgressBarAutomationPeer.cs
- Stylesheet.cs
- CalendarKeyboardHelper.cs
- safelinkcollection.cs
- MessageLoggingFilterTraceRecord.cs
- EraserBehavior.cs
- StringWriter.cs
- PeerName.cs
- ObjectDataProvider.cs
- WeakReferenceKey.cs
- EventProvider.cs
- ListItemCollection.cs
- FunctionCommandText.cs
- TextTabProperties.cs
- QuotedStringWriteStateInfo.cs
- Timer.cs
- PublisherMembershipCondition.cs
- ListDictionaryInternal.cs
- HostedTransportConfigurationBase.cs
- DataObjectAttribute.cs
- InteropAutomationProvider.cs
- WorkflowRuntimeService.cs
- CSharpCodeProvider.cs
- AnnotationResourceCollection.cs
- SqlConnectionString.cs
- TextEmbeddedObject.cs
- DataListItem.cs
- SplineQuaternionKeyFrame.cs
- DataSourceSelectArguments.cs
- UmAlQuraCalendar.cs
- ContentType.cs
- WizardForm.cs
- XomlCompilerError.cs
- RestClientProxyHandler.cs
- MissingSatelliteAssemblyException.cs
- Matrix3D.cs
- CounterSetInstance.cs