Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / IIS7UserPrincipal.cs / 1 / IIS7UserPrincipal.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Hosting {
using System;
using System.Text;
using System.Collections.Generic;
using System.Security.Principal;
internal sealed class IIS7UserPrincipal : IPrincipal {
// user object fields
private IIdentity _identity;
private IIS7WorkerRequest _wr;
internal IIS7UserPrincipal(IIS7WorkerRequest wr, IIdentity identity) {
_wr = wr;
_identity = identity;
}
//
// IPrincipal implementations
//
public IIdentity Identity {
get { return _identity; }
}
public bool IsInRole(String role) {
return _wr.IsUserInRole(role);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TabItem.cs
- ScrollProperties.cs
- SoapEnumAttribute.cs
- SingleSelectRootGridEntry.cs
- IdentityValidationException.cs
- Stackframe.cs
- RefreshEventArgs.cs
- ObjectSet.cs
- shaperfactory.cs
- SqlBuffer.cs
- MatrixTransform.cs
- CombinedGeometry.cs
- ObsoleteAttribute.cs
- FtpWebResponse.cs
- TaskHelper.cs
- TypefaceMap.cs
- DataGridCommandEventArgs.cs
- XmlSchemaAny.cs
- DaylightTime.cs
- EntityContainerEmitter.cs
- NavigatorInput.cs
- HashLookup.cs
- ToolBarPanel.cs
- ItemsPresenter.cs
- VectorConverter.cs
- ListViewItem.cs
- HWStack.cs
- HostSecurityManager.cs
- PropertyStore.cs
- BufferedStream.cs
- ComponentDispatcherThread.cs
- StringFreezingAttribute.cs
- UInt16.cs
- MemberInitExpression.cs
- RTLAwareMessageBox.cs
- BigInt.cs
- ReversePositionQuery.cs
- XmlDownloadManager.cs
- IgnoreFileBuildProvider.cs
- TextEditorLists.cs
- ClientUrlResolverWrapper.cs
- HttpFormatExtensions.cs
- TransactionManagerProxy.cs
- QuaternionConverter.cs
- FormatException.cs
- ToolStripSplitButton.cs
- Soap12FormatExtensions.cs
- Span.cs
- TypeConverterValueSerializer.cs
- XmlHelper.cs
- SchemaConstraints.cs
- EventArgs.cs
- EventQueueState.cs
- TableLayoutCellPaintEventArgs.cs
- SqlAliaser.cs
- MSHTMLHost.cs
- ThicknessAnimationUsingKeyFrames.cs
- XslException.cs
- TypedDatasetGenerator.cs
- DocumentViewerAutomationPeer.cs
- SubclassTypeValidatorAttribute.cs
- SystemInfo.cs
- WindowsPrincipal.cs
- HttpPostLocalhostServerProtocol.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DoubleLink.cs
- DragSelectionMessageFilter.cs
- SchemaImporterExtensionElementCollection.cs
- TraceListeners.cs
- FactoryGenerator.cs
- HttpRawResponse.cs
- ClientTargetCollection.cs
- SystemIcons.cs
- AppDomain.cs
- GridViewRowPresenter.cs
- XComponentModel.cs
- ReferencedAssemblyResolver.cs
- TextRangeEdit.cs
- XmlAnyElementAttributes.cs
- ItemsChangedEventArgs.cs
- BitVector32.cs
- Converter.cs
- InputMethodStateChangeEventArgs.cs
- EmptyQuery.cs
- UITypeEditor.cs
- XmlUrlResolver.cs
- ToolboxDataAttribute.cs
- Helper.cs
- ReadOnlyTernaryTree.cs
- SQLBinary.cs
- TypeUtils.cs
- DataStreamFromComStream.cs
- ColumnWidthChangedEvent.cs
- EnvelopedPkcs7.cs
- TextClipboardData.cs
- DropTarget.cs
- HttpPostedFile.cs
- UIElementIsland.cs
- ProcessThreadCollection.cs
- DataGridToolTip.cs