FileIOPermission.Union(IPermission) FileIOPermission.Union(IPermission) FileIOPermission.Union(IPermission) FileIOPermission.Union(IPermission) Method

定義

建立目前權限與指定權限聯集的權限。Creates a permission that is the union of the current permission and the specified permission.

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

參數

other
IPermission IPermission IPermission IPermission

要與目前權限結合的權限,A permission to combine with the current permission. 必須與目前權限屬於相同的類型。It must be the same type as the current permission.

傳回

代表目前權限與指定權限聯集的新權限。A new permission that represents the union of the current permission and the specified permission.

例外狀況

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

備註

若要呼叫的結果Union是代表的權限表示的所有作業的目前權限和指定的權限。The result of a call to Union is a permission that represents all the operations represented by both the current permission and the specified permission. 任何通過其中之一權限的需求會傳遞它們的聯集。Any demand that passes either permission passes their union.

適用於