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
- DataRecordInternal.cs
- DbFunctionCommandTree.cs
- DataAccessor.cs
- XmlStringTable.cs
- PermissionToken.cs
- WeakReferenceKey.cs
- ImageIndexConverter.cs
- WebPartManager.cs
- SchemaHelper.cs
- ListBox.cs
- Quad.cs
- DefaultMergeHelper.cs
- DataDesignUtil.cs
- MsmqOutputMessage.cs
- securitycriticaldataClass.cs
- EntityDescriptor.cs
- MissingMethodException.cs
- EntityAdapter.cs
- AssociationSetEnd.cs
- TextTreeRootNode.cs
- Calendar.cs
- XmlCodeExporter.cs
- ListBoxChrome.cs
- InvalidWorkflowException.cs
- JournalNavigationScope.cs
- Point3DConverter.cs
- SqlFileStream.cs
- DataMemberConverter.cs
- ToolStripRendererSwitcher.cs
- ToolStripPanelRow.cs
- GZipStream.cs
- CodeTypeOfExpression.cs
- WebRequestModulesSection.cs
- DiscoveryInnerClientManaged11.cs
- TextClipboardData.cs
- SystemUdpStatistics.cs
- FontUnitConverter.cs
- StatusBarPanel.cs
- ConnectionManagementElementCollection.cs
- GridViewCommandEventArgs.cs
- WebBrowserDesigner.cs
- AttributeCollection.cs
- Win32.cs
- Calendar.cs
- SystemWebCachingSectionGroup.cs
- ObjectCloneHelper.cs
- HttpException.cs
- RootProfilePropertySettingsCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- PenThread.cs
- MarkupProperty.cs
- CompleteWizardStep.cs
- Icon.cs
- InputLanguageEventArgs.cs
- OledbConnectionStringbuilder.cs
- recordstatefactory.cs
- Debug.cs
- TypedOperationInfo.cs
- X509CertificateClaimSet.cs
- DataSetUtil.cs
- ReadOnlyAttribute.cs
- HMACRIPEMD160.cs
- XmlUrlResolver.cs
- SqlUtil.cs
- Speller.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TextEditorSelection.cs
- AsymmetricSignatureFormatter.cs
- WebConfigurationHost.cs
- AuthenticationSection.cs
- ReaderWriterLockSlim.cs
- ComponentCollection.cs
- BamlBinaryWriter.cs
- XmlDocumentSerializer.cs
- CodeObject.cs
- Visual3D.cs
- DataGridRowEventArgs.cs
- ActiveXSite.cs
- NativeObjectSecurity.cs
- EditingCoordinator.cs
- RubberbandSelector.cs
- SvcMapFileSerializer.cs
- Cursors.cs
- dataSvcMapFileLoader.cs
- CommandHelper.cs
- CellIdBoolean.cs
- DataPager.cs
- Exception.cs
- SafeLocalMemHandle.cs
- ReverseInheritProperty.cs
- InstallerTypeAttribute.cs
- ColumnCollectionEditor.cs
- BaseTreeIterator.cs
- HttpPostedFile.cs
- RepeatButton.cs
- XmlBinaryReader.cs
- XmlResolver.cs
- TextParagraphProperties.cs
- CachedFontFace.cs
- Opcode.cs