Code:
/ DotNET / DotNET / 8.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
- ConfigXmlReader.cs
- ProxyHwnd.cs
- SqlNamer.cs
- COM2IDispatchConverter.cs
- ProviderUtil.cs
- ArraySubsetEnumerator.cs
- SqlProviderManifest.cs
- X509CertificateEndpointIdentity.cs
- GestureRecognizer.cs
- DataGridRow.cs
- FormatterServices.cs
- StreamAsIStream.cs
- XmlSchemaSimpleType.cs
- AndCondition.cs
- FixedPosition.cs
- DependencyObject.cs
- EntityDataSource.cs
- NavigationEventArgs.cs
- StringFreezingAttribute.cs
- Peer.cs
- Helper.cs
- XmlSerializerVersionAttribute.cs
- RequestSecurityTokenForGetBrowserToken.cs
- CollectionDataContractAttribute.cs
- DataGridItem.cs
- ProxyGenerationError.cs
- SchemaTypeEmitter.cs
- UnsafeNativeMethods.cs
- BitmapEncoder.cs
- AuthorizationSection.cs
- ContourSegment.cs
- WindowsHyperlink.cs
- ScriptControlManager.cs
- PropertyMetadata.cs
- MessageFilter.cs
- PixelFormats.cs
- GradientBrush.cs
- RequestQueryProcessor.cs
- NavigationPropertySingletonExpression.cs
- TemplatePropertyEntry.cs
- Model3D.cs
- PropertyValueUIItem.cs
- MemberDescriptor.cs
- Int16AnimationUsingKeyFrames.cs
- SqlProviderServices.cs
- RequestCacheEntry.cs
- ColumnResult.cs
- TextTreeInsertUndoUnit.cs
- ConversionContext.cs
- InheritedPropertyChangedEventArgs.cs
- DataGridViewColumn.cs
- ExitEventArgs.cs
- TextElementCollection.cs
- TabControlCancelEvent.cs
- ServiceModelExtensionElement.cs
- AttributeXamlType.cs
- XamlToRtfParser.cs
- SchemaConstraints.cs
- DataServiceHostFactory.cs
- ServiceModelEnumValidator.cs
- AppLevelCompilationSectionCache.cs
- TimeStampChecker.cs
- RoutedPropertyChangedEventArgs.cs
- XmlSerializerVersionAttribute.cs
- ResourcePool.cs
- UndoManager.cs
- MethodBody.cs
- InputProcessorProfiles.cs
- TextBoxBase.cs
- DispatcherProcessingDisabled.cs
- ConfigXmlDocument.cs
- RectConverter.cs
- xamlnodes.cs
- x509store.cs
- ErrorTableItemStyle.cs
- SubclassTypeValidatorAttribute.cs
- ZeroOpNode.cs
- BitmapDownload.cs
- ReachFixedDocumentSerializerAsync.cs
- Effect.cs
- ContentAlignmentEditor.cs
- ArrayItemReference.cs
- ServiceOperationInvoker.cs
- TextServicesCompartmentEventSink.cs
- StreamSecurityUpgradeProvider.cs
- XmlDeclaration.cs
- ScriptReferenceBase.cs
- LocatorBase.cs
- UdpChannelListener.cs
- UpDownEvent.cs
- EpmContentDeSerializerBase.cs
- LocalizationComments.cs
- AxisAngleRotation3D.cs
- SiteMapNode.cs
- SafeFileHandle.cs
- ActiveXHost.cs
- ArgumentNullException.cs
- IFlowDocumentViewer.cs
- TrailingSpaceComparer.cs
- IgnoreDeviceFilterElementCollection.cs