TypeDescriptorPermission.Union(IPermission) 方法

定义

当在派生类中重写时,则创建属于当前权限与指定权限的并集的权限。When overridden in a derived class, creates a permission that is the union of the current permission and the specified permission.

public:
 override System::Security::IPermission ^ Union(System::Security::IPermission ^ target);
public override System.Security.IPermission Union (System.Security.IPermission target);
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Union (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

表示同时兼具当前权限和指定权限的新权限。A new permission that represents the union of the current permission and the specified permission.

适用于

另请参阅