PermissionSet.RemovePermission(Type) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
Metoden anropas från en ReadOnlyPermissionSet.
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.