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
- storepermission.cs
- ProcessInfo.cs
- ReplyAdapterChannelListener.cs
- DataAdapter.cs
- SortDescription.cs
- NumberFormatInfo.cs
- MessageSmuggler.cs
- ThreadAbortException.cs
- DateTimeSerializationSection.cs
- AnnotationComponentChooser.cs
- ImagingCache.cs
- StaticDataManager.cs
- XPathAncestorIterator.cs
- EventDescriptorCollection.cs
- SizeChangedEventArgs.cs
- HelpProvider.cs
- MenuItemStyleCollection.cs
- TypeListConverter.cs
- DisableDpiAwarenessAttribute.cs
- While.cs
- Margins.cs
- Convert.cs
- WebPartTracker.cs
- CodeTypeParameter.cs
- CqlBlock.cs
- DbBuffer.cs
- formatter.cs
- ExceptionRoutedEventArgs.cs
- ListControl.cs
- ParallelEnumerableWrapper.cs
- ReachVisualSerializerAsync.cs
- GridProviderWrapper.cs
- TableLayout.cs
- ZipIOExtraFieldElement.cs
- DesignerSerializationVisibilityAttribute.cs
- CodeChecksumPragma.cs
- LocalsItemDescription.cs
- DateTimeFormatInfo.cs
- StringReader.cs
- Compiler.cs
- VisualSerializer.cs
- FixedSOMImage.cs
- ContentElement.cs
- GlyphInfoList.cs
- DataSvcMapFile.cs
- TypeSystem.cs
- ResetableIterator.cs
- CustomAttributeBuilder.cs
- DirectoryInfo.cs
- PropertyMapper.cs
- Helpers.cs
- DesignTimeSiteMapProvider.cs
- SQLByteStorage.cs
- HandlerMappingMemo.cs
- DataGridAddNewRow.cs
- MachineKeyConverter.cs
- Pen.cs
- StringFreezingAttribute.cs
- Activity.cs
- __Filters.cs
- UnsafeNativeMethods.cs
- BitmapEffectDrawingContent.cs
- LayoutEvent.cs
- IndexedGlyphRun.cs
- DataMemberFieldEditor.cs
- CodeDirectoryCompiler.cs
- WindowsToolbarItemAsMenuItem.cs
- Variant.cs
- JsonEncodingStreamWrapper.cs
- FixedTextView.cs
- MsmqHostedTransportConfiguration.cs
- ToolStripItem.cs
- WindowsIPAddress.cs
- SystemFonts.cs
- SoapSchemaExporter.cs
- ExpressionDumper.cs
- Timer.cs
- WinFormsUtils.cs
- DotExpr.cs
- AdapterSwitches.cs
- DataRowExtensions.cs
- XmlCharType.cs
- Ref.cs
- SizeIndependentAnimationStorage.cs
- Atom10ItemFormatter.cs
- IERequestCache.cs
- PolicyManager.cs
- DataListCommandEventArgs.cs
- TimeSpanOrInfiniteConverter.cs
- DocumentsTrace.cs
- PieceNameHelper.cs
- CompModSwitches.cs
- SMSvcHost.cs
- Debug.cs
- MtomMessageEncodingElement.cs
- AlphabeticalEnumConverter.cs
- TimeSpanValidatorAttribute.cs
- XmlCodeExporter.cs
- StringCollectionMarkupSerializer.cs
- XmlSchema.cs