共用方式為


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 強型別實例。

適用於