FileIOPermission.Intersect(IPermission) FileIOPermission.Intersect(IPermission) FileIOPermission.Intersect(IPermission) FileIOPermission.Intersect(IPermission) Method

定義

建立並傳回目前權限與指定權限交集的權限。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 IPermission IPermission IPermission

要與目前權限產生交集的權限。A permission to intersect with the current permission. 必須與目前權限屬於相同的類型。It must be the same type as the current permission.

傳回

代表目前權限與指定權限交集的新權限。A new permission that represents the intersection of the current permission and the specified permission. 如果交集是空的,這個新權限就是 nullThis new permission is null if the intersection is empty.

例外狀況

target 參數不是 null,而且與目前權限屬於不同的類型。The target parameter is not null and is not of the same type as the current permission.

備註

兩個許可權的交集是一種許可權,可描述兩者共同描述的作業集合。The intersection of two permissions is a permission that describes the set of operations they both describe in common. 只有通過這兩個原始許可權的要求才會通過交集。Only a demand that passes both original permissions will pass the intersection.

適用於