ClaimsPrincipalPermissionAttribute.Operation 属性

定义

获取或设置当前主体应在指定资源上授权的操作。

public:
 property System::String ^ Operation { System::String ^ get(); void set(System::String ^ value); };
public string Operation { get; set; }
member this.Operation : string with get, set
Public Property Operation As String

属性值

应为其授权当前主体的操作。

注解

该操作是当前主体应在指定资源上授权的操作。 调用方法以创建权限时Operation,必须在声明中设置ClaimsPrincipalPermissionAttribute该属性CreatePermission,否则将引发异常。

适用于