PermissionSet.RemovePermission(Type) Metod

Definition

Tar bort en behörighet av en viss typ från uppsättningen.

public:
 System::Security::IPermission ^ RemovePermission(Type ^ permClass);
public:
 virtual System::Security::IPermission ^ RemovePermission(Type ^ permClass);
public System.Security.IPermission? RemovePermission(Type? permClass);
public virtual System.Security.IPermission RemovePermission(Type permClass);
public System.Security.IPermission RemovePermission(Type permClass);
member this.RemovePermission : Type -> System.Security.IPermission
abstract member RemovePermission : Type -> System.Security.IPermission
override this.RemovePermission : Type -> System.Security.IPermission
Public Function RemovePermission (permClass As Type) As IPermission
Public Overridable Function RemovePermission (permClass As Type) As IPermission

Parametrar

permClass
Type

Typ av behörighet att ta bort.

Returer

Behörigheten har tagits bort från uppsättningen.

Undantag

Kommentarer

Important

Du kan inte ta bort behörigheter från en obegränsad behörighetsuppsättning. Behörighetsuppsättningen förblir obegränsad när du försöker ta bort behörigheten och inget undantag genereras.

Anteckningar till arvingar

När du ärver från PermissionSetkan du ändra metodens RemovePermission(Type) beteende genom att RemovePermissionImpl(Type) åsidosätta metoden.

Gäller för