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

实体集允许的权限。

注解

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

适用于