PermissionSet.IsEmpty 方法

定义

获取一个值,该值指示是否为 PermissionSet 空。

public:
 bool IsEmpty();
public:
 virtual bool IsEmpty();
public bool IsEmpty();
public virtual bool IsEmpty();
member this.IsEmpty : unit -> bool
abstract member IsEmpty : unit -> bool
override this.IsEmpty : unit -> bool
Public Function IsEmpty () As Boolean
Public Overridable Function IsEmpty () As Boolean

返回

true 如果为空, PermissionSet 则为空;否则为 false

注解

如果这些权限处于完全受限状态,则 A PermissionSet 可以为空,但包含权限实例。 如果权限作为参数传递时IsSubsetOf返回truenull方法,则权限处于完全受限状态。

适用于