共用方式為


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 的強型別執行個體。

適用於

另請參閱