AspNetHostingPermission.Union(IPermission) 方法
定义
创建一个权限,该权限是当前权限与指定权限的并集。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。An IPermission that represents the union of the current permission and the specified permission.
例外
target 不是 AspNetHostingPermission。target is not an AspNetHostingPermission.