Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Win32.cs
- DesignRelationCollection.cs
- InstancePersistenceCommandException.cs
- RectangleGeometry.cs
- CommandPlan.cs
- ViewCellRelation.cs
- FaultBookmark.cs
- BindingGraph.cs
- DateTimeConverter.cs
- DataGridViewCellFormattingEventArgs.cs
- OrderByQueryOptionExpression.cs
- HtmlTableRowCollection.cs
- ConnectionStringsExpressionBuilder.cs
- MatrixCamera.cs
- SqlProfileProvider.cs
- SubMenuStyle.cs
- Figure.cs
- InvalidateEvent.cs
- WindowsSspiNegotiation.cs
- TreeNodeBinding.cs
- Calendar.cs
- PTManager.cs
- TextElement.cs
- XPathExpr.cs
- BooleanConverter.cs
- PrincipalPermission.cs
- SequentialUshortCollection.cs
- WebPartCollection.cs
- NativeMethods.cs
- Parser.cs
- Number.cs
- QueryPageSettingsEventArgs.cs
- XhtmlBasicCalendarAdapter.cs
- RadioButton.cs
- FontNameConverter.cs
- Thread.cs
- Splitter.cs
- XmlSerializerSection.cs
- DriveInfo.cs
- SchemaImporterExtensionElementCollection.cs
- TextTreeInsertElementUndoUnit.cs
- WorkflowInstanceAbortedRecord.cs
- PersistenceTask.cs
- WmpBitmapDecoder.cs
- PointAnimation.cs
- MsmqNonTransactedPoisonHandler.cs
- CollectionChangedEventManager.cs
- TrackingLocation.cs
- PropertyToken.cs
- Int32Rect.cs
- ChangeConflicts.cs
- InterleavedZipPartStream.cs
- ProviderConnectionPointCollection.cs
- AVElementHelper.cs
- MouseCaptureWithinProperty.cs
- AdPostCacheSubstitution.cs
- CompletedAsyncResult.cs
- DataGridViewRow.cs
- AssociatedControlConverter.cs
- SecurityDocument.cs
- ProviderCollection.cs
- ObjectSet.cs
- Compensate.cs
- DataGridRelationshipRow.cs
- IpcChannelHelper.cs
- SingleStorage.cs
- HwndAppCommandInputProvider.cs
- ITreeGenerator.cs
- DateTimeConverter.cs
- SequentialActivityDesigner.cs
- AttachedPropertiesService.cs
- _LocalDataStoreMgr.cs
- AmbiguousMatchException.cs
- SmtpNetworkElement.cs
- CodeDirectoryCompiler.cs
- MdiWindowListItemConverter.cs
- UnsafeNativeMethods.cs
- OraclePermission.cs
- DataPointer.cs
- CompilerGlobalScopeAttribute.cs
- SizeAnimationClockResource.cs
- BuiltInExpr.cs
- CompoundFileDeflateTransform.cs
- KeyboardEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- DispatcherTimer.cs
- ConnectionStringsExpressionBuilder.cs
- FlowDocumentScrollViewer.cs
- TraceHwndHost.cs
- RoutedEventArgs.cs
- ToolStripTextBox.cs
- Divide.cs
- ParserExtension.cs
- DetailsViewInsertedEventArgs.cs
- PathHelper.cs
- CachedPathData.cs
- XmlMemberMapping.cs
- IisTraceListener.cs
- ExpressionBindingsDialog.cs
- EventDescriptorCollection.cs