共用方式為


DbProviderFactory.CreatePermission(PermissionState) 方法

定義

傳回提供者類別的新執行個體,該類別實作 CodeAccessPermission 類別的提供者版本。

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

參數

state
PermissionState

其中一個 PermissionState 值。

傳回

指定之 CodeAccessPermissionPermissionState 物件。

適用於

另請參閱