PermissionSet.AddPermissionImpl(IPermission) PermissionSet.AddPermissionImpl(IPermission) PermissionSet.AddPermissionImpl(IPermission) PermissionSet.AddPermissionImpl(IPermission) Method

定義

指定した権限を PermissionSet に追加します。Adds a specified permission to the PermissionSet.

protected:
 virtual System::Security::IPermission ^ AddPermissionImpl(System::Security::IPermission ^ perm);
protected virtual System.Security.IPermission AddPermissionImpl (System.Security.IPermission perm);
abstract member AddPermissionImpl : System.Security.IPermission -> System.Security.IPermission
override this.AddPermissionImpl : System.Security.IPermission -> System.Security.IPermission
Protected Overridable Function AddPermissionImpl (perm As IPermission) As IPermission

パラメーター

perm
IPermission IPermission IPermission IPermission

追加する権限。The permission to add.

戻り値

追加される権限および PermissionSet に既に存在する型と同じ型のすべての権限の和集合。あるいは、permnull の場合には nullThe union of the permission added and any permission of the same type that already exists in the PermissionSet, or null if perm is null.

例外

注釈

AddPermissionImplメソッドは、実装、AddPermissionメソッド。The AddPermissionImpl method is the implementation for the AddPermission method.

追加されたアクセス許可を既にと同じ型のアクセス許可が存在するかどうか、 PermissionSet、新しいアクセス許可は、既存のアクセス許可オブジェクトと指定したアクセス許可オブジェクトの和集合。If a permission of the same type as the added permission already exists in the PermissionSet, the new permission is the union of the existing permission object and the specified permission object. アクセス許可を実装する場合など、IUnrestrictedPermissionに追加されます、 Unrestricted PermissionSet、結果の和集合は、元のUnrestrictedPermissionSetします。For example, if a permission that implements IUnrestrictedPermission is added to an UnrestrictedPermissionSet, the resulting union is the original UnrestrictedPermissionSet.

適用対象