共用方式為


EntityProviderFactory.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 值。

傳回

指定之 CodeAccessPermissionPermissionState 物件。

適用於