Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Executor.cs
- ProfilePropertySettings.cs
- ConnectionConsumerAttribute.cs
- DataGridHelper.cs
- XPathPatternBuilder.cs
- URLString.cs
- EdmTypeAttribute.cs
- UserInitiatedNavigationPermission.cs
- UnsafeNativeMethods.cs
- WebBrowserProgressChangedEventHandler.cs
- SqlParameter.cs
- DataGridColumnStyleMappingNameEditor.cs
- CryptoConfig.cs
- AutoFocusStyle.xaml.cs
- MimeObjectFactory.cs
- SynchronizationLockException.cs
- SymmetricKeyWrap.cs
- WebPartTransformerCollection.cs
- EpmSourcePathSegment.cs
- TreeViewCancelEvent.cs
- PropertyTabAttribute.cs
- DynamicArgumentDialog.cs
- TokenizerHelper.cs
- HyperLinkColumn.cs
- NotificationContext.cs
- SessionStateModule.cs
- FragmentQueryKB.cs
- EnumConverter.cs
- ToolStripScrollButton.cs
- RegexCompiler.cs
- DateTimeOffsetConverter.cs
- CaretElement.cs
- UiaCoreTypesApi.cs
- InvalidEnumArgumentException.cs
- ManagementInstaller.cs
- DesignerSerializerAttribute.cs
- AttributeCollection.cs
- DNS.cs
- EDesignUtil.cs
- XmlUtil.cs
- LambdaCompiler.Expressions.cs
- ListViewItemEventArgs.cs
- VerticalAlignConverter.cs
- TableLayoutPanelCellPosition.cs
- ListItemConverter.cs
- DetailsViewPageEventArgs.cs
- HttpCookie.cs
- parserscommon.cs
- RegexMatchCollection.cs
- CodeGenerator.cs
- OleDbTransaction.cs
- MILUtilities.cs
- PathFigureCollection.cs
- DefaultTextStoreTextComposition.cs
- DelimitedListTraceListener.cs
- RoleManagerModule.cs
- DataServiceContext.cs
- StylusSystemGestureEventArgs.cs
- HighlightOverlayGlyph.cs
- Context.cs
- EditBehavior.cs
- SapiGrammar.cs
- SHA1Managed.cs
- LinkArea.cs
- SplineKeyFrames.cs
- BatchWriter.cs
- WizardPanelChangingEventArgs.cs
- AppModelKnownContentFactory.cs
- Splitter.cs
- XmlDataImplementation.cs
- BrowserCapabilitiesFactory.cs
- XmlIterators.cs
- ObjectIDGenerator.cs
- SerializationEventsCache.cs
- EventPropertyMap.cs
- FixedPageProcessor.cs
- BamlRecordHelper.cs
- TemplateBamlRecordReader.cs
- UIElement3D.cs
- ConstraintEnumerator.cs
- RowCache.cs
- ConfigUtil.cs
- ObjectListGeneralPage.cs
- AppDomainManager.cs
- RoleGroupCollection.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ReliableSessionBindingElementImporter.cs
- EntityDataSourceState.cs
- TimelineCollection.cs
- Model3D.cs
- PostBackTrigger.cs
- MediaSystem.cs
- ChineseLunisolarCalendar.cs
- WindowsToolbarAsMenu.cs
- NavigationService.cs
- EmptyStringExpandableObjectConverter.cs
- Debug.cs
- VectorAnimationBase.cs
- CompiledELinqQueryState.cs
- FileLoadException.cs