﻿<?xml version="1.0" encoding="utf-8"?><Type Name="GenericPrincipal" FullName="System.Security.Principal.GenericPrincipal"><TypeSignature Maintainer="auto" Language="C#" Value="public class GenericPrincipal : System.Security.Principal.IPrincipal" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit GenericPrincipal extends System.Object implements class System.Security.Principal.IPrincipal" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Security.Principal.IPrincipal</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This class represents the roles of the current user.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents a generic principal.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public GenericPrincipal (System.Security.Principal.IIdentity identity, string[] roles);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Security.Principal.IIdentity identity, string[] roles) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="identity" Type="System.Security.Principal.IIdentity" /><Parameter Name="roles" Type="System.String[]" /></Parameters><Docs><remarks>The roles array can be null if the identity isn't part of any role.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.Principal.GenericPrincipal" /> class from a user identity and an array of role names to which the user represented by that identity belongs.</para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />A basic implementation of <see cref="T:System.Security.Principal.IIdentity" /> that represents any user. </param><param name="roles"><attribution license="cc4" from="Microsoft" modified="false" />An array of role names to which the user represented by the <paramref name="identity" /> parameter belongs. </param></Docs></Member><Member MemberName="Identity"><MemberSignature Language="C#" Value="public virtual System.Security.Principal.IIdentity Identity { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Security.Principal.IIdentity Identity" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Principal.IIdentity</ReturnType></ReturnValue><Docs><value>The current identity of the principal.</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Security.Principal.GenericIdentity" /> of the user represented by the current <see cref="T:System.Security.Principal.GenericPrincipal" />.</para></summary></Docs></Member><Member MemberName="IsInRole"><MemberSignature Language="C#" Value="public virtual bool IsInRole (string role);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsInRole(string role) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="role" Type="System.String" /></Parameters><Docs><remarks>Roles are case sensitive.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the current <see cref="T:System.Security.Principal.GenericPrincipal" /> belongs to the specified role.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the current <see cref="T:System.Security.Principal.GenericPrincipal" /> is a member of the specified role; otherwise, false.</para></returns><param name="role"><attribution license="cc4" from="Microsoft" modified="false" />The name of the role for which to check membership. </param></Docs></Member></Members></Type>