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
- Opcode.cs
- CloudCollection.cs
- X509Extension.cs
- FixedElement.cs
- SchemaHelper.cs
- XmlArrayItemAttribute.cs
- Nullable.cs
- MiniMapControl.xaml.cs
- PlainXmlDeserializer.cs
- ClientScriptManager.cs
- TableRowGroup.cs
- SymLanguageVendor.cs
- StrokeCollectionConverter.cs
- BitmapSource.cs
- ProviderConnectionPointCollection.cs
- AttachedAnnotationChangedEventArgs.cs
- QilXmlReader.cs
- ServiceNameElementCollection.cs
- RenderData.cs
- MediaContextNotificationWindow.cs
- MenuItem.cs
- StringBuilder.cs
- WebPartUtil.cs
- AssemblyInfo.cs
- HtmlControlAdapter.cs
- LassoSelectionBehavior.cs
- ControlPropertyNameConverter.cs
- XmlMemberMapping.cs
- ErrorWrapper.cs
- IPPacketInformation.cs
- MetadataFile.cs
- GroupBox.cs
- StreamReader.cs
- FormViewDesigner.cs
- DBBindings.cs
- SspiNegotiationTokenAuthenticatorState.cs
- TextLine.cs
- CLSCompliantAttribute.cs
- XmlDeclaration.cs
- CollectionType.cs
- EventLogSession.cs
- ScriptingRoleServiceSection.cs
- FormCollection.cs
- ContainerControl.cs
- PropertySet.cs
- EntityContainerRelationshipSet.cs
- ResizeGrip.cs
- XPathChildIterator.cs
- ImageInfo.cs
- Material.cs
- PersistChildrenAttribute.cs
- PeerServiceMessageContracts.cs
- WebPartMenuStyle.cs
- AuthorizationRuleCollection.cs
- Token.cs
- FixUp.cs
- SvcMapFile.cs
- DetailsViewPagerRow.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ContentFileHelper.cs
- ReaderWriterLock.cs
- WebPart.cs
- WebPartMinimizeVerb.cs
- DependencyProperty.cs
- WrappedReader.cs
- KnownBoxes.cs
- Overlapped.cs
- MbpInfo.cs
- QueryableDataSourceView.cs
- TaiwanCalendar.cs
- ToolStripPanelRow.cs
- WebResourceUtil.cs
- SemanticBasicElement.cs
- SecurityHeaderElementInferenceEngine.cs
- StorageEndPropertyMapping.cs
- LineServices.cs
- RuntimeHandles.cs
- PasswordPropertyTextAttribute.cs
- HtmlTitle.cs
- RegionIterator.cs
- DynamicMethod.cs
- RequestFactory.cs
- XmlQueryCardinality.cs
- AnnouncementDispatcherAsyncResult.cs
- XmlEntityReference.cs
- DbSetClause.cs
- CollectionViewSource.cs
- CodeSnippetTypeMember.cs
- BitSet.cs
- CodeExpressionCollection.cs
- PageWrapper.cs
- webproxy.cs
- Exception.cs
- MetadataItemCollectionFactory.cs
- ILGenerator.cs
- BuildProviderUtils.cs
- XmlConvert.cs
- ConfigurationSchemaErrors.cs
- CompositionAdorner.cs
- BypassElement.cs