TypeDescriptorPermission.IsSubsetOf(IPermission) 方法

定义

通过派生类实现时,确定当前权限是否为指定权限的子集。When implemented by a derived class, determines whether the current permission is a subset of the specified permission.

public:
 override bool IsSubsetOf(System::Security::IPermission ^ target);
public override bool IsSubsetOf (System.Security.IPermission target);
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Overrides Function IsSubsetOf (target As IPermission) As Boolean

参数

target
IPermission

将要测试子集关系的权限。A permission that is to be tested for the subset relationship. 此权限必须与当前权限属于同一类型。This permission must be of the same type as the current permission.

返回

Boolean

如果当前权限是指定权限的子集,则为 true;否则为 falsetrue if the current permission is a subset of the specified permission; otherwise, false.

适用于

另请参阅