MediaPermission.Intersect(IPermission) 方法
定义
创建并返回一个权限,该权限是当前权限与指定权限的交集。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 intersect with the current permission. 它必须与当前权限属于同一类型。It must be of the same type as the current permission.
返回
两个权限的交集是描述两者共同描述的状态的权限。The intersection of two permissions is a permission that describes the state that they both describe in common. 只有传递两个原始权限的请求对相交的权限有效。Only a demand that passes both original permissions will be valid for the intersected permission.