Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ThreadAbortException.cs
- InstanceDataCollection.cs
- _OverlappedAsyncResult.cs
- DesignerPainter.cs
- QilList.cs
- SizeAnimationClockResource.cs
- BinaryQueryOperator.cs
- OneToOneMappingSerializer.cs
- CultureTableRecord.cs
- URIFormatException.cs
- InputLanguageManager.cs
- EndpointAddressElementBase.cs
- NavigationProperty.cs
- MaterialCollection.cs
- TimeSpanValidator.cs
- DiagnosticsConfiguration.cs
- TransactionScopeDesigner.cs
- XmlSchemaCompilationSettings.cs
- KnownBoxes.cs
- GeometryHitTestParameters.cs
- OpenTypeCommon.cs
- _AutoWebProxyScriptWrapper.cs
- TdsRecordBufferSetter.cs
- ContextMarshalException.cs
- SignedXml.cs
- InfoCardTrace.cs
- HMACMD5.cs
- CompilerGeneratedAttribute.cs
- XmlNamespaceManager.cs
- PhysicalFontFamily.cs
- BufferedWebEventProvider.cs
- Expression.DebuggerProxy.cs
- OrderByBuilder.cs
- VersionConverter.cs
- VScrollBar.cs
- SapiGrammar.cs
- OletxDependentTransaction.cs
- PhoneCallDesigner.cs
- SRGSCompiler.cs
- CompilationUnit.cs
- FontFamily.cs
- SuppressIldasmAttribute.cs
- PropertyPathWorker.cs
- KnownColorTable.cs
- DataGridViewSortCompareEventArgs.cs
- WindowsRichEditRange.cs
- InstanceKeyCollisionException.cs
- IRCollection.cs
- LineSegment.cs
- SByteConverter.cs
- XslNumber.cs
- CalendarItem.cs
- MenuItemCollectionEditor.cs
- RsaKeyIdentifierClause.cs
- KoreanLunisolarCalendar.cs
- SoapTypeAttribute.cs
- Canvas.cs
- DesignerOptionService.cs
- ItemCollection.cs
- XmlLinkedNode.cs
- DataGridRow.cs
- Trace.cs
- CapabilitiesPattern.cs
- RtfControlWordInfo.cs
- MouseGesture.cs
- SqlMethods.cs
- XPathAncestorQuery.cs
- Matrix3DConverter.cs
- ConditionalDesigner.cs
- OrCondition.cs
- OrderingExpression.cs
- RijndaelManagedTransform.cs
- StylusCollection.cs
- XPathExpr.cs
- sqlinternaltransaction.cs
- NavigateUrlConverter.cs
- DoubleIndependentAnimationStorage.cs
- Odbc32.cs
- Wrapper.cs
- DoneReceivingAsyncResult.cs
- SqlDataSourceCustomCommandEditor.cs
- ComplexPropertyEntry.cs
- DesignerSerializationVisibilityAttribute.cs
- SafeHandles.cs
- MultiPageTextView.cs
- _ProxyChain.cs
- Collection.cs
- GACMembershipCondition.cs
- HMAC.cs
- DoubleLinkList.cs
- SafeArrayRankMismatchException.cs
- QueryContinueDragEvent.cs
- FontFamily.cs
- Polygon.cs
- NTAccount.cs
- TimestampInformation.cs
- CommandHelpers.cs
- WebPartConnectVerb.cs
- SharedUtils.cs
- XmlBindingWorker.cs