Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrongName.cs
- IISUnsafeMethods.cs
- TimeSpan.cs
- ToolStripGripRenderEventArgs.cs
- Random.cs
- Stack.cs
- GcSettings.cs
- DefaultEventAttribute.cs
- HtmlFormAdapter.cs
- StreamInfo.cs
- SQLMoneyStorage.cs
- Stream.cs
- RandomNumberGenerator.cs
- TypeConverterHelper.cs
- ProcessHost.cs
- ScriptingRoleServiceSection.cs
- AssociationTypeEmitter.cs
- SerializationEventsCache.cs
- OleAutBinder.cs
- _ListenerResponseStream.cs
- OletxDependentTransaction.cs
- XmlSchemas.cs
- SimpleType.cs
- DesignObjectWrapper.cs
- SecurityTimestamp.cs
- __ConsoleStream.cs
- DefaultHttpHandler.cs
- LoginView.cs
- WsdlBuildProvider.cs
- FactoryRecord.cs
- ChtmlFormAdapter.cs
- ListBindingConverter.cs
- Icon.cs
- WSUtilitySpecificationVersion.cs
- SQLDecimal.cs
- MonthChangedEventArgs.cs
- XmlSchemaInfo.cs
- ClientOptions.cs
- HttpRuntime.cs
- WebBrowserContainer.cs
- TemplateNameScope.cs
- _NegoState.cs
- XamlVector3DCollectionSerializer.cs
- FixedFlowMap.cs
- DependencyProperty.cs
- IgnoreFileBuildProvider.cs
- SettingsAttributeDictionary.cs
- DataRelationPropertyDescriptor.cs
- SHA256CryptoServiceProvider.cs
- ProxyWebPart.cs
- EntityProxyFactory.cs
- StateItem.cs
- objectresult_tresulttype.cs
- CompositeDuplexBindingElementImporter.cs
- XhtmlBasicListAdapter.cs
- SortedList.cs
- XmlNullResolver.cs
- Geometry3D.cs
- CodeCatchClause.cs
- TextCollapsingProperties.cs
- Parameter.cs
- InsufficientMemoryException.cs
- GlobalizationSection.cs
- RowUpdatedEventArgs.cs
- Math.cs
- _RequestCacheProtocol.cs
- NativeMethods.cs
- DetailsViewDeleteEventArgs.cs
- DbExpressionRules.cs
- IdentityNotMappedException.cs
- ScaleTransform3D.cs
- Thumb.cs
- DataConnectionHelper.cs
- TemplatePartAttribute.cs
- SqlConnectionFactory.cs
- TdsEnums.cs
- PolyLineSegment.cs
- ApplicationBuildProvider.cs
- PackageStore.cs
- MobileUserControl.cs
- ContextItemManager.cs
- RegexTree.cs
- CalendarButton.cs
- BulletedList.cs
- PeerInvitationResponse.cs
- coordinatorscratchpad.cs
- TheQuery.cs
- NotSupportedException.cs
- httpserverutility.cs
- DispatchOperation.cs
- PathFigureCollectionValueSerializer.cs
- PackagingUtilities.cs
- TableRow.cs
- ConfigXmlAttribute.cs
- TextReader.cs
- ScriptComponentDescriptor.cs
- Guid.cs
- HtmlHistory.cs
- Message.cs
- SurrogateSelector.cs