IDataServiceConfiguration.SetEntitySetAccessRule 方法

定义

为指定的实体集设置访问规则。

public:
 void SetEntitySetAccessRule(System::String ^ name, System::Data::Services::EntitySetRights rights);
public void SetEntitySetAccessRule (string name, System.Data.Services.EntitySetRights rights);
abstract member SetEntitySetAccessRule : string * System.Data.Services.EntitySetRights -> unit
Public Sub SetEntitySetAccessRule (name As String, rights As EntitySetRights)

参数

name
String

所配置访问的实体集名称。

rights
EntitySetRights

实体集所允许的权限。

注解

默认配置是拒绝对资源的访问。 初始化服务时,必须启用访问权限。

适用于