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
- BitConverter.cs
- Color.cs
- ExceptionHelpers.cs
- StringDictionary.cs
- VisualBasicHelper.cs
- ObjectViewFactory.cs
- DesignOnlyAttribute.cs
- SafeSecurityHandles.cs
- KeyValueSerializer.cs
- ToolStripDropDownButton.cs
- AsyncResult.cs
- FtpRequestCacheValidator.cs
- Stopwatch.cs
- ProtocolsConfigurationEntry.cs
- MailBnfHelper.cs
- CursorConverter.cs
- UpDownEvent.cs
- ProtocolInformationReader.cs
- ObfuscationAttribute.cs
- OleDbRowUpdatedEvent.cs
- QilTypeChecker.cs
- Code.cs
- ReaderContextStackData.cs
- KoreanCalendar.cs
- WrapPanel.cs
- ImageSourceValueSerializer.cs
- RelationshipConverter.cs
- BindingBase.cs
- SmtpSection.cs
- ServiceObjectContainer.cs
- XPathScanner.cs
- SizeAnimationClockResource.cs
- ScrollBar.cs
- WorkflowRuntimeServicesBehavior.cs
- DoubleCollection.cs
- MailDefinition.cs
- DataRowChangeEvent.cs
- Constraint.cs
- IFlowDocumentViewer.cs
- ObservableDictionary.cs
- OleDbStruct.cs
- BaseDataList.cs
- PerformanceCounterPermissionEntryCollection.cs
- NeutralResourcesLanguageAttribute.cs
- ContainerParagraph.cs
- SolidColorBrush.cs
- ButtonBaseAdapter.cs
- ClockController.cs
- ListenUriMode.cs
- ClientTargetCollection.cs
- IncrementalHitTester.cs
- CompiledIdentityConstraint.cs
- TextOutput.cs
- SchemaTableColumn.cs
- SecurityKeyUsage.cs
- FileDataSourceCache.cs
- Stack.cs
- DataSetMappper.cs
- SamlConstants.cs
- XmlCharacterData.cs
- TripleDES.cs
- StickyNoteAnnotations.cs
- RelatedImageListAttribute.cs
- TriState.cs
- ChannelServices.cs
- SoapTypeAttribute.cs
- KeyTimeConverter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DBDataPermissionAttribute.cs
- XamlVector3DCollectionSerializer.cs
- OrderedDictionary.cs
- ClusterSafeNativeMethods.cs
- LineBreakRecord.cs
- XMLSyntaxException.cs
- TcpSocketManager.cs
- DispatcherSynchronizationContext.cs
- EventRecord.cs
- ToolStripComboBox.cs
- RouteParametersHelper.cs
- ComponentEvent.cs
- SlipBehavior.cs
- securitycriticaldataformultiplegetandset.cs
- TextDecoration.cs
- WinFormsSecurity.cs
- XomlCompilerResults.cs
- CurrentTimeZone.cs
- OleDbRowUpdatingEvent.cs
- TypeDescriptor.cs
- QilCloneVisitor.cs
- ScriptComponentDescriptor.cs
- _BufferOffsetSize.cs
- HttpCacheVaryByContentEncodings.cs
- VirtualDirectoryMapping.cs
- DispatchChannelSink.cs
- FigureHelper.cs
- InvokeSchedule.cs
- Transform3DCollection.cs
- BinaryFormatterWriter.cs
- ErrorFormatterPage.cs
- InvalidOleVariantTypeException.cs