Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / AccessControl / PrivilegeNotHeldException.cs / 1 / PrivilegeNotHeldException.cs
// Copyright (c) Microsoft Corporation. All rights reserved. using Microsoft.Win32; using System; using System.Runtime.Serialization; using System.Text; using System.Globalization; using System.Security.Permissions; namespace System.Security.AccessControl { [Serializable] public sealed class PrivilegeNotHeldException : UnauthorizedAccessException, ISerializable { private readonly string _privilegeName = null; public PrivilegeNotHeldException() : base( Environment.GetResourceString( "PrivilegeNotHeld_Default" )) { } public PrivilegeNotHeldException( string privilege ) : base( string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "PrivilegeNotHeld_Named" ), privilege )) { _privilegeName = privilege; } public PrivilegeNotHeldException( string privilege, Exception inner ) : base( string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "PrivilegeNotHeld_Named" ), privilege ), inner ) { _privilegeName = privilege; } internal PrivilegeNotHeldException( SerializationInfo info, StreamingContext context ) : base( info, context ) { _privilegeName = info.GetString("PrivilegeName"); } public string PrivilegeName { get { return _privilegeName; } } [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData( SerializationInfo info, StreamingContext context ) { if ( info == null ) { throw new ArgumentNullException( "info" ); } base.GetObjectData(info, context); info.AddValue("PrivilegeName", _privilegeName, typeof( string )); } } } // 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
- DocumentXPathNavigator.cs
- PriorityQueue.cs
- SqlDataRecord.cs
- TextEffectResolver.cs
- Events.cs
- ArithmeticException.cs
- RoleService.cs
- DetailsViewPagerRow.cs
- WebPartExportVerb.cs
- Vector.cs
- ImageCollectionEditor.cs
- DBSchemaTable.cs
- UnsafeNativeMethodsCLR.cs
- KeyValueInternalCollection.cs
- AppModelKnownContentFactory.cs
- GridViewSortEventArgs.cs
- XsdDataContractExporter.cs
- WindowsGraphicsCacheManager.cs
- UInt32.cs
- IsolatedStorage.cs
- RegexCompilationInfo.cs
- CompiledAction.cs
- FlowDocumentScrollViewer.cs
- LoopExpression.cs
- AttachedAnnotationChangedEventArgs.cs
- WindowClosedEventArgs.cs
- CompiledQueryCacheKey.cs
- ExpandCollapsePattern.cs
- Schema.cs
- XPathEmptyIterator.cs
- TagMapCollection.cs
- RemoteWebConfigurationHostStream.cs
- Link.cs
- XmlDocumentType.cs
- ApplicationProxyInternal.cs
- MenuItem.cs
- GPRECTF.cs
- Win32.cs
- XmlHierarchicalDataSourceView.cs
- HwndHostAutomationPeer.cs
- StateManagedCollection.cs
- TemplatedWizardStep.cs
- AbandonedMutexException.cs
- TitleStyle.cs
- DataBoundControlAdapter.cs
- ServiceDebugElement.cs
- ToolStripItem.cs
- CounterSetInstanceCounterDataSet.cs
- Lasso.cs
- Pool.cs
- SelectionProviderWrapper.cs
- PreviewPrintController.cs
- EntityProviderFactory.cs
- MruCache.cs
- MimeTypeMapper.cs
- Inflater.cs
- ToolStripOverflowButton.cs
- DataRecordInfo.cs
- ConnectionOrientedTransportChannelListener.cs
- DataViewManagerListItemTypeDescriptor.cs
- IPGlobalProperties.cs
- FlowLayoutPanel.cs
- XmlChoiceIdentifierAttribute.cs
- NonBatchDirectoryCompiler.cs
- XmlSchemaProviderAttribute.cs
- ItemCheckEvent.cs
- Transform3DGroup.cs
- NativeMethods.cs
- SystemUdpStatistics.cs
- XmlJsonReader.cs
- HttpWebResponse.cs
- DataServiceRequestException.cs
- QuaternionValueSerializer.cs
- FileLevelControlBuilderAttribute.cs
- TreeNodeClickEventArgs.cs
- OleDbWrapper.cs
- IdnMapping.cs
- DefaultAsyncDataDispatcher.cs
- SelectionPatternIdentifiers.cs
- NativeRightsManagementAPIsStructures.cs
- PtsHost.cs
- FixedTextContainer.cs
- Base64WriteStateInfo.cs
- XmlMessageFormatter.cs
- HttpMethodConstraint.cs
- AdornerPresentationContext.cs
- RectangleGeometry.cs
- UserPreferenceChangedEventArgs.cs
- ToolStripTemplateNode.cs
- _ConnectStream.cs
- HttpRawResponse.cs
- CodeTypeParameter.cs
- EditorPartCollection.cs
- ValueChangedEventManager.cs
- TransactionOptions.cs
- TextServicesCompartmentContext.cs
- SafeRegistryHandle.cs
- BitmapEffectGeneralTransform.cs
- HelpProvider.cs
- ListSourceHelper.cs