Sdílet prostřednictvím


DbProviderFactory.CreatePermission(PermissionState) Metoda

Definice

Vrátí novou instanci třídy zprostředkovatele, která implementuje verzi CodeAccessPermission zprostředkovatele třídy.

public:
 virtual System::Security::CodeAccessPermission ^ CreatePermission(System::Security::Permissions::PermissionState state);
public virtual System.Security.CodeAccessPermission CreatePermission (System.Security.Permissions.PermissionState state);
abstract member CreatePermission : System.Security.Permissions.PermissionState -> System.Security.CodeAccessPermission
override this.CreatePermission : System.Security.Permissions.PermissionState -> System.Security.CodeAccessPermission
Public Overridable Function CreatePermission (state As PermissionState) As CodeAccessPermission

Parametry

state
PermissionState

Jedna z PermissionState hodnot.

Návraty

Objekt CodeAccessPermission pro zadaný PermissionStateobjekt .

Platí pro

Viz také