SqlClientFactory.CreatePermission(PermissionState) 方法

定义

返回新的 CodeAccessPermission

public:
 override System::Security::CodeAccessPermission ^ CreatePermission(System::Security::Permissions::PermissionState state);
public override 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 Overrides Function CreatePermission (state As PermissionState) As CodeAccessPermission

参数

state
PermissionState

PermissionState 枚举的一个成员。

返回

的强类型实例 CodeAccessPermission

适用于