Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (122 sloc) 6.51 KB
<Type Name="IPrincipal" FullName="System.Security.Principal.IPrincipal">
<TypeSignature Language="C#" Value="public interface IPrincipal" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IPrincipal" />
<TypeSignature Language="DocId" Value="T:System.Security.Principal.IPrincipal" />
<TypeSignature Language="VB.NET" Value="Public Interface IPrincipal" />
<TypeSignature Language="C++ CLI" Value="public interface class IPrincipal" />
<TypeSignature Language="F#" Value="type IPrincipal = interface" />
<AssemblyInfo>
<AssemblyName>System.Security.Principal</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.1.1.0</AssemblyVersion>
<AssemblyVersion>4.1.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0;netframework-4.8">
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Defines the basic functionality of a principal object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A principal object represents the security context of the user on whose behalf the code is running, including that user's identity (<xref:System.Security.Principal.IIdentity>) and any roles to which they belong.
All principal objects are required to implement the <xref:System.Security.Principal.IPrincipal> interface. For more information about <xref:System.Security.Principal.IPrincipal> implementations, see the <xref:System.Security.Claims.ClaimsPrincipal> class.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Identity">
<MemberSignature Language="C#" Value="public System.Security.Principal.IIdentity Identity { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Security.Principal.IIdentity Identity" />
<MemberSignature Language="DocId" Value="P:System.Security.Principal.IPrincipal.Identity" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Identity As IIdentity" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Security::Principal::IIdentity ^ Identity { System::Security::Principal::IIdentity ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Identity : System.Security.Principal.IIdentity" Usage="System.Security.Principal.IPrincipal.Identity" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Principal</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.1.1.0</AssemblyVersion>
<AssemblyVersion>4.1.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Security.Principal.IIdentity</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the identity of the current principal.</summary>
<value>The <see cref="T:System.Security.Principal.IIdentity" /> object associated with the current principal.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsInRole">
<MemberSignature Language="C#" Value="public bool IsInRole (string role);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsInRole(string role) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Principal.IPrincipal.IsInRole(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function IsInRole (role As String) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; bool IsInRole(System::String ^ role);" />
<MemberSignature Language="F#" Value="abstract member IsInRole : string -&gt; bool" Usage="iPrincipal.IsInRole role" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Principal</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.1.1.0</AssemblyVersion>
<AssemblyVersion>4.1.2.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="role" Type="System.String" />
</Parameters>
<Docs>
<param name="role">The name of the role for which to check membership.</param>
<summary>Determines whether the current principal belongs to the specified role.</summary>
<returns>
<see langword="true" /> if the current principal is a member of the specified role; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.