ClaimsPrincipalPermissionAttribute 类

ClaimsPrincipalPermissionAttribute is used to declaratively request a ClaimsPrincipalPermission.

命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As ClaimsPrincipalPermissionAttribute

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, AllowMultiple:=True)> _
Public Class ClaimsPrincipalPermissionAttribute
    Inherits CodeAccessSecurityAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple=true)] 
public class ClaimsPrincipalPermissionAttribute : CodeAccessSecurityAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, AllowMultiple=true)] 
public ref class ClaimsPrincipalPermissionAttribute : public CodeAccessSecurityAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple=true) */ 
public class ClaimsPrincipalPermissionAttribute extends CodeAccessSecurityAttribute
AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple=true) 
public class ClaimsPrincipalPermissionAttribute extends CodeAccessSecurityAttribute

继承层次结构

System.Object
   System.Attribute
     System.Security.Permissions.SecurityAttribute
       System.Security.Permissions.CodeAccessSecurityAttribute
        Microsoft.IdentityModel.Claims.ClaimsPrincipalPermissionAttribute

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

请参见

参考

ClaimsPrincipalPermissionAttribute 成员
Microsoft.IdentityModel.Claims 命名空间