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 值之一。

返回

指定的 CodeAccessPermission 的一个 PermissionState 对象。

适用于

另请参阅