AspNetHostingPermission.Intersect(IPermission) 方法

定义

通过派生类实现时,创建和返回是当前权限和指定权限的交集的权限。When implemented by a derived class, creates and returns a permission that is the intersection of the current permission and the specified permission.

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

参数

target
IPermission

与当前权限合并的权限。A permission to combine with the current permission. 它必须与当前权限属于同一类型。It must be of the same type as the current permission.

返回

IPermission

表示当前权限与指定权限的交集的 IPermission;如果交集为空,则为 nullAn IPermission that represents the intersection of the current permission and the specified permission; otherwise, null if the intersection is empty.

例外

适用于

另请参阅