Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ClientServices / ClientRolePrincipal.cs / 1 / ClientRolePrincipal.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.ClientServices { using System; using System.Net; using System.Security.Principal; public class ClientRolePrincipal : IPrincipal { public IIdentity Identity { get { return _Identity; } } private IIdentity _Identity; public ClientRolePrincipal(IIdentity identity) { _Identity = identity; } public bool IsInRole(string role) { return System.Web.Security.Roles.IsUserInRole(_Identity.Name, 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
- FixedSchema.cs
- Error.cs
- GorillaCodec.cs
- SqlNotificationRequest.cs
- InputDevice.cs
- SrgsToken.cs
- GlyphsSerializer.cs
- VScrollBar.cs
- DataSourceSelectArguments.cs
- WpfMemberInvoker.cs
- GAC.cs
- TextureBrush.cs
- Command.cs
- HtmlTableRow.cs
- XPathAncestorQuery.cs
- XmlSchemaAttributeGroup.cs
- PointHitTestResult.cs
- TimelineGroup.cs
- Tablet.cs
- SqlFactory.cs
- CompiledQueryCacheKey.cs
- RelationshipDetailsCollection.cs
- AttributeQuery.cs
- _RequestLifetimeSetter.cs
- DateTimeSerializationSection.cs
- FixUp.cs
- RawStylusInputReport.cs
- BindingMemberInfo.cs
- MemberProjectionIndex.cs
- XmlReflectionImporter.cs
- SmtpCommands.cs
- BrowserTree.cs
- TextElementEnumerator.cs
- TextRangeProviderWrapper.cs
- ToolBarButtonDesigner.cs
- TextEditorTyping.cs
- SessionPageStateSection.cs
- DataMember.cs
- BackgroundFormatInfo.cs
- IItemContainerGenerator.cs
- Material.cs
- PasswordTextContainer.cs
- IPHostEntry.cs
- DataGridSortCommandEventArgs.cs
- DataQuery.cs
- Utils.cs
- SelectionEditingBehavior.cs
- RecordBuilder.cs
- X509CertificateTrustedIssuerElement.cs
- Size.cs
- DurationConverter.cs
- Stylus.cs
- PropertyOverridesDialog.cs
- EventItfInfo.cs
- updatecommandorderer.cs
- TimeoutHelper.cs
- NamespaceExpr.cs
- ImplicitInputBrush.cs
- TextCharacters.cs
- HeaderedItemsControl.cs
- GenericAuthenticationEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- UndoEngine.cs
- AuthorizationPolicyTypeElement.cs
- BitmapImage.cs
- TriState.cs
- FileInfo.cs
- Win32KeyboardDevice.cs
- RuleSettingsCollection.cs
- DataGridTextBox.cs
- MarkupCompilePass2.cs
- FontStyle.cs
- HttpRuntime.cs
- SpellerInterop.cs
- HtmlLinkAdapter.cs
- PageRequestManager.cs
- CommandBinding.cs
- XsdBuilder.cs
- OleDbConnectionInternal.cs
- MappingItemCollection.cs
- ProgressBarHighlightConverter.cs
- HttpServerVarsCollection.cs
- codemethodreferenceexpression.cs
- wgx_exports.cs
- Pen.cs
- TabControlAutomationPeer.cs
- CustomValidator.cs
- SigningProgress.cs
- WindowsGraphics.cs
- InvokePattern.cs
- CodeDomDecompiler.cs
- OpenFileDialog.cs
- Point3DAnimation.cs
- SoapProtocolImporter.cs
- Queue.cs
- Pointer.cs
- DataControlFieldCollection.cs
- GraphicsState.cs
- WebPartEventArgs.cs
- NestPullup.cs