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

参数

state
PermissionState

PermissionState 枚举的一个成员。

返回

CodeAccessPermission 的强类型实例。

适用于

另请参阅