Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / UnauthorizedAccessException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- EventLog.cs
- DoubleAnimationUsingPath.cs
- HashHelper.cs
- Attribute.cs
- SerializerWriterEventHandlers.cs
- CheckBoxFlatAdapter.cs
- Fx.cs
- CombinedHttpChannel.cs
- MenuRenderer.cs
- CatalogPart.cs
- IndividualDeviceConfig.cs
- ThemeableAttribute.cs
- ExpanderAutomationPeer.cs
- SymbolType.cs
- DataSet.cs
- UnsafeNativeMethods.cs
- Pen.cs
- SmiEventStream.cs
- MenuItemCollectionEditor.cs
- BindingNavigator.cs
- PointAnimationClockResource.cs
- HMACSHA512.cs
- MultipartContentParser.cs
- BigIntegerStorage.cs
- OperandQuery.cs
- ClientSettings.cs
- FormClosingEvent.cs
- Stroke2.cs
- ListSortDescriptionCollection.cs
- SqlXml.cs
- LogicalExpr.cs
- XmlNodeChangedEventManager.cs
- TextClipboardData.cs
- TraceHandler.cs
- KerberosSecurityTokenAuthenticator.cs
- WebPartZoneBase.cs
- OdbcParameter.cs
- MouseGestureConverter.cs
- MenuItemBinding.cs
- SecurityDescriptor.cs
- MetafileHeaderWmf.cs
- RuntimeConfigurationRecord.cs
- MD5CryptoServiceProvider.cs
- DateTimeStorage.cs
- BuildProvidersCompiler.cs
- BindingManagerDataErrorEventArgs.cs
- Literal.cs
- ReadOnlyObservableCollection.cs
- WorkflowDesigner.cs
- wmiprovider.cs
- ItemContainerGenerator.cs
- FormatConvertedBitmap.cs
- ViewManagerAttribute.cs
- ReadWriteObjectLock.cs
- ProviderConnectionPointCollection.cs
- Int64AnimationBase.cs
- ConnectionPointCookie.cs
- CalendarAutoFormat.cs
- DataGridCellsPanel.cs
- DataControlImageButton.cs
- TiffBitmapDecoder.cs
- ProfileParameter.cs
- Pair.cs
- ClientRuntimeConfig.cs
- BinaryUtilClasses.cs
- PostBackOptions.cs
- EdmEntityTypeAttribute.cs
- TreeNode.cs
- ConfigurationManagerInternalFactory.cs
- DirectoryInfo.cs
- CustomAssemblyResolver.cs
- StylusSystemGestureEventArgs.cs
- invalidudtexception.cs
- DashStyles.cs
- FixedSOMElement.cs
- util.cs
- SessionPageStatePersister.cs
- EqualityArray.cs
- Vector3DKeyFrameCollection.cs
- DataFormats.cs
- DrawListViewColumnHeaderEventArgs.cs
- AffineTransform3D.cs
- XmlValidatingReaderImpl.cs
- SchemaImporterExtensionElementCollection.cs
- _SslStream.cs
- ControlPaint.cs
- ApplicationInfo.cs
- BaseParagraph.cs
- CodeStatementCollection.cs
- EdmSchemaError.cs
- TransformerTypeCollection.cs
- VerificationException.cs
- WebPartExportVerb.cs
- DataGridViewDataErrorEventArgs.cs
- MemoryRecordBuffer.cs
- Component.cs
- DataError.cs
- DataGridViewRowsAddedEventArgs.cs
- ChtmlFormAdapter.cs
- HtmlInputFile.cs