Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / ClientServices / ClientRolePrincipal.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuiltInPermissionSets.cs
- _AutoWebProxyScriptEngine.cs
- DetailsViewRow.cs
- SecurityPolicySection.cs
- CodeDOMProvider.cs
- DesignerSerializationVisibilityAttribute.cs
- PreviewKeyDownEventArgs.cs
- TreeBuilderBamlTranslator.cs
- odbcmetadatacollectionnames.cs
- SingleObjectCollection.cs
- QueryInterceptorAttribute.cs
- nulltextnavigator.cs
- SqlCachedBuffer.cs
- DataTableExtensions.cs
- InvalidPipelineStoreException.cs
- RegexCompiler.cs
- MarkupExtensionReturnTypeAttribute.cs
- ObjectHandle.cs
- SqlInternalConnectionSmi.cs
- DefaultBinder.cs
- ColorConverter.cs
- PagesChangedEventArgs.cs
- Style.cs
- SoapSchemaExporter.cs
- InstanceCreationEditor.cs
- TextTrailingWordEllipsis.cs
- StandardRuntimeEnumValidator.cs
- Oid.cs
- TimeSpanSecondsConverter.cs
- WorkerRequest.cs
- MissingSatelliteAssemblyException.cs
- HyperLinkDataBindingHandler.cs
- HttpListenerPrefixCollection.cs
- SegmentInfo.cs
- VisualTreeFlattener.cs
- UIElementPropertyUndoUnit.cs
- typedescriptorpermission.cs
- HeaderElement.cs
- CustomCredentialPolicy.cs
- SelectionGlyphBase.cs
- Queue.cs
- AuthenticationException.cs
- PrintController.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- OleDbWrapper.cs
- TraceLevelStore.cs
- SoapHttpTransportImporter.cs
- EditorPart.cs
- WindowsPen.cs
- XsdBuilder.cs
- MailBnfHelper.cs
- PreviewPageInfo.cs
- StandardTransformFactory.cs
- FilteredAttributeCollection.cs
- CorrelationHandle.cs
- ZipArchive.cs
- XmlSchemaCompilationSettings.cs
- XmlIlGenerator.cs
- BamlReader.cs
- Debug.cs
- BadImageFormatException.cs
- Operand.cs
- XappLauncher.cs
- HtmlMeta.cs
- PointF.cs
- ContextStaticAttribute.cs
- SafeArrayTypeMismatchException.cs
- BuildProvidersCompiler.cs
- NamedPipeTransportManager.cs
- Console.cs
- SHA512.cs
- TemplatePartAttribute.cs
- LogAppendAsyncResult.cs
- SmtpClient.cs
- BamlRecordHelper.cs
- WindowsGrip.cs
- XmlnsCompatibleWithAttribute.cs
- JoinTreeSlot.cs
- DesignerHelpers.cs
- keycontainerpermission.cs
- PrivilegeNotHeldException.cs
- XhtmlConformanceSection.cs
- ScopedKnownTypes.cs
- WCFModelStrings.Designer.cs
- TemplatePartAttribute.cs
- Point3DValueSerializer.cs
- FrameworkElement.cs
- SQLString.cs
- ListViewInsertedEventArgs.cs
- GridViewRowCollection.cs
- CLSCompliantAttribute.cs
- SerialPinChanges.cs
- ShimAsPublicXamlType.cs
- ScrollProperties.cs
- EditBehavior.cs
- MemberRelationshipService.cs
- ResourceIDHelper.cs
- MemberPath.cs
- StringValidator.cs
- SafeFileMapViewHandle.cs