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 值之一。

返回

指定的 CodeAccessPermission 的一个 PermissionState 对象。

适用于