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;如果交集为空,则为 null。An IPermission that represents the intersection of the current permission and the specified permission; otherwise, null if the intersection is empty.
例外
target 不是 AspNetHostingPermission。target is not an AspNetHostingPermission.