ClaimsPrincipalPermission 类
ClaimsPrincipalPermission represents the permission required to access a resource. ClaimsPrincipalPermission takes in a string that represents the resource to be accessed, and a string that represents the action to be performed on the resource. When Demand is called, the principal must have the permission to perform the specified action on the specified resource, or Demand throws an exception. This permission is checked by CheckAccess.
命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim instance As ClaimsPrincipalPermission
语法
声明
<SerializableAttribute> _
Public NotInheritable Class ClaimsPrincipalPermission
Implements IPermission, ISecurityEncodable, IUnrestrictedPermission
[SerializableAttribute]
public sealed class ClaimsPrincipalPermission : IPermission, ISecurityEncodable, IUnrestrictedPermission
[SerializableAttribute]
public ref class ClaimsPrincipalPermission sealed : IPermission, ISecurityEncodable, IUnrestrictedPermission
/** @attribute SerializableAttribute() */
public final class ClaimsPrincipalPermission implements IPermission, ISecurityEncodable,
IUnrestrictedPermission
SerializableAttribute
public final class ClaimsPrincipalPermission implements IPermission, ISecurityEncodable,
IUnrestrictedPermission
继承层次结构
System.Object
Microsoft.IdentityModel.Claims.ClaimsPrincipalPermission
线程安全
此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
请参见
参考
ClaimsPrincipalPermission 成员
Microsoft.IdentityModel.Claims 命名空间