Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ToolStripSystemRenderer.cs
- OracleNumber.cs
- StateRuntime.cs
- DataGridCellAutomationPeer.cs
- SslStream.cs
- XmlNotation.cs
- SQLByteStorage.cs
- _UriTypeConverter.cs
- DrawingVisualDrawingContext.cs
- SingleObjectCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- BypassElement.cs
- SurrogateChar.cs
- DataViewManager.cs
- AvtEvent.cs
- MultipleViewPattern.cs
- DockAndAnchorLayout.cs
- HtmlHead.cs
- XPathSelectionIterator.cs
- XmlAggregates.cs
- TreeViewImageKeyConverter.cs
- Condition.cs
- TextEffect.cs
- precedingsibling.cs
- SoapBinding.cs
- WorkflowPersistenceService.cs
- ConfigurationStrings.cs
- AutomationEventArgs.cs
- LongValidator.cs
- PenLineJoinValidation.cs
- HuffModule.cs
- OdbcHandle.cs
- WeakEventTable.cs
- ProcessThread.cs
- TransformProviderWrapper.cs
- Config.cs
- SHA1.cs
- AssemblyNameProxy.cs
- PostBackOptions.cs
- Stylus.cs
- HtmlHistory.cs
- ScrollableControl.cs
- CompilerWrapper.cs
- SelectionService.cs
- ControlValuePropertyAttribute.cs
- LOSFormatter.cs
- Encoding.cs
- Attributes.cs
- SerializableAttribute.cs
- ChildrenQuery.cs
- TabItem.cs
- InvokeDelegate.cs
- Classification.cs
- HtmlTernaryTree.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- COM2Enum.cs
- JournalEntry.cs
- MappingModelBuildProvider.cs
- EncoderParameter.cs
- Point3D.cs
- NotifyIcon.cs
- CodeMemberProperty.cs
- TrackingMemoryStream.cs
- UriParserTemplates.cs
- EdmEntityTypeAttribute.cs
- BitmapEffectGroup.cs
- ResourceDefaultValueAttribute.cs
- ObjectListDataBindEventArgs.cs
- CapabilitiesPattern.cs
- InputReferenceExpression.cs
- SafeNativeMethods.cs
- GrammarBuilderBase.cs
- WebResourceAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- DWriteFactory.cs
- StringKeyFrameCollection.cs
- CollectionTraceRecord.cs
- SetterBase.cs
- CommandBinding.cs
- PlainXmlDeserializer.cs
- StylusPointProperty.cs
- VarInfo.cs
- XPathNavigatorKeyComparer.cs
- UrlUtility.cs
- DataGridCellsPresenter.cs
- AspNetSynchronizationContext.cs
- ConsoleKeyInfo.cs
- _LazyAsyncResult.cs
- ToolStripItemClickedEventArgs.cs
- ConfigurationManagerHelper.cs
- Int32KeyFrameCollection.cs
- XsltArgumentList.cs
- DataGridViewComboBoxCell.cs
- DataGridPagerStyle.cs
- TreeNodeCollection.cs
- TransactionValidationBehavior.cs
- WindowsScrollBar.cs
- XmlSchemaExternal.cs
- ColorAnimationUsingKeyFrames.cs
- SoapFaultCodes.cs