Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HostSecurityManager.cs
- PropertyCondition.cs
- ConfigurationManagerHelper.cs
- Vector3DKeyFrameCollection.cs
- IFlowDocumentViewer.cs
- DataSysAttribute.cs
- OracleCommandBuilder.cs
- InputEventArgs.cs
- BaseParser.cs
- WorkflowApplicationTerminatedException.cs
- DecoratedNameAttribute.cs
- ContractInferenceHelper.cs
- UnaryNode.cs
- SafeCoTaskMem.cs
- MessageParameterAttribute.cs
- EncoderExceptionFallback.cs
- SiteMapNodeItem.cs
- IsolatedStoragePermission.cs
- ReliabilityContractAttribute.cs
- HwndKeyboardInputProvider.cs
- HuffModule.cs
- MediaContext.cs
- ItemsControlAutomationPeer.cs
- TdsEnums.cs
- NativeObjectSecurity.cs
- ContextMenuService.cs
- VBCodeProvider.cs
- FileDialogPermission.cs
- AttachedAnnotation.cs
- DependencyObject.cs
- VSWCFServiceContractGenerator.cs
- ContainerUtilities.cs
- DataChangedEventManager.cs
- TreeNodeCollection.cs
- XhtmlBasicLabelAdapter.cs
- DelayDesigner.cs
- PixelFormat.cs
- WebBrowserNavigatedEventHandler.cs
- ResourceCategoryAttribute.cs
- CodeCatchClauseCollection.cs
- DoubleAverageAggregationOperator.cs
- DataColumn.cs
- SetIterators.cs
- SignerInfo.cs
- BinaryUtilClasses.cs
- ParseElement.cs
- UpdatableGenericsFeature.cs
- StringArrayConverter.cs
- ConstructorBuilder.cs
- ComboBoxAutomationPeer.cs
- ToolboxBitmapAttribute.cs
- XmlBinaryWriterSession.cs
- ControlBuilderAttribute.cs
- UIElementCollection.cs
- BooleanKeyFrameCollection.cs
- PrivateFontCollection.cs
- PeerInputChannel.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridColumnStyleMappingNameEditor.cs
- MemberInfoSerializationHolder.cs
- CodeAccessSecurityEngine.cs
- GridProviderWrapper.cs
- SimpleMailWebEventProvider.cs
- FieldNameLookup.cs
- Margins.cs
- ContractUtils.cs
- Table.cs
- DummyDataSource.cs
- RunWorkerCompletedEventArgs.cs
- RadioButtonStandardAdapter.cs
- OdbcConnectionString.cs
- Pool.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XdrBuilder.cs
- InternalCompensate.cs
- DBCSCodePageEncoding.cs
- RolePrincipal.cs
- ArrangedElement.cs
- If.cs
- cryptoapiTransform.cs
- NameValueCollection.cs
- XmlSortKeyAccumulator.cs
- GenericWebPart.cs
- TextBoxRenderer.cs
- Normalization.cs
- EraserBehavior.cs
- RootProfilePropertySettingsCollection.cs
- IconConverter.cs
- UnsafeNativeMethodsPenimc.cs
- WebPartConnectionCollection.cs
- ProbeDuplexAsyncResult.cs
- ErrorRuntimeConfig.cs
- ApplicationManager.cs
- WarningException.cs
- WindowsStartMenu.cs
- TimeStampChecker.cs
- SettingsProperty.cs
- ItemList.cs
- SAPIEngineTypes.cs
- QilBinary.cs