Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RSAPKCS1KeyExchangeFormatter.cs
- ReceiveSecurityHeaderElementManager.cs
- SimpleTypeResolver.cs
- FileUtil.cs
- TargetConverter.cs
- WebEvents.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- CssClassPropertyAttribute.cs
- CardSpaceException.cs
- DefaultTextStore.cs
- DispatcherProcessingDisabled.cs
- ObjectStateEntryDbDataRecord.cs
- BuilderInfo.cs
- unitconverter.cs
- ObjectViewFactory.cs
- VectorValueSerializer.cs
- Schema.cs
- validationstate.cs
- Nullable.cs
- XmlILStorageConverter.cs
- SatelliteContractVersionAttribute.cs
- AvTrace.cs
- SortableBindingList.cs
- RelationshipDetailsCollection.cs
- embossbitmapeffect.cs
- StatusBarItemAutomationPeer.cs
- AsyncCompletedEventArgs.cs
- BrowserDefinitionCollection.cs
- FormViewPageEventArgs.cs
- ConnectionString.cs
- DataControlFieldTypeEditor.cs
- OSEnvironmentHelper.cs
- ObjectDataSourceWizardForm.cs
- ChtmlFormAdapter.cs
- itemelement.cs
- MasterPageParser.cs
- LookupNode.cs
- BinaryParser.cs
- OperationExecutionFault.cs
- LogSwitch.cs
- ObjectView.cs
- Item.cs
- StreamInfo.cs
- GlyphRunDrawing.cs
- VScrollBar.cs
- DataSourceConverter.cs
- ToolStripItemRenderEventArgs.cs
- Pkcs7Recipient.cs
- TypedDatasetGenerator.cs
- JsonObjectDataContract.cs
- Renderer.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SQLGuid.cs
- URLAttribute.cs
- ReferentialConstraint.cs
- httpserverutility.cs
- TemplatePagerField.cs
- QueryStoreStatusRequest.cs
- DataGridTextBox.cs
- MemoryPressure.cs
- EditBehavior.cs
- ItemContainerPattern.cs
- FontSizeConverter.cs
- ExpressionBindings.cs
- TraceLog.cs
- PersonalizationProvider.cs
- XamlStackWriter.cs
- CqlParserHelpers.cs
- TemplateField.cs
- WCFModelStrings.Designer.cs
- ClientSponsor.cs
- GridViewRowEventArgs.cs
- LinqDataSource.cs
- TextRangeAdaptor.cs
- Tag.cs
- LogLogRecordHeader.cs
- ObjectIDGenerator.cs
- XmlNamespaceManager.cs
- LambdaCompiler.Binary.cs
- __Filters.cs
- UnsafeNativeMethods.cs
- XamlReaderHelper.cs
- DesignerAutoFormat.cs
- ErrorStyle.cs
- CompiledQueryCacheKey.cs
- ProxyElement.cs
- CompilerGlobalScopeAttribute.cs
- CacheModeConverter.cs
- ToolStripDropDownMenu.cs
- RegexMatchCollection.cs
- XmlRootAttribute.cs
- DesignerSerializerAttribute.cs
- PingReply.cs
- AccessViolationException.cs
- PointAnimationUsingPath.cs
- TableLayoutCellPaintEventArgs.cs
- ToolStripCodeDomSerializer.cs
- HttpServerUtilityWrapper.cs
- PathGeometry.cs
- TextDecorationCollection.cs