IDataServiceConfiguration.SetEntitySetAccessRule Method

Definition

Sets the access rules for the specified entity set.

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)

Parameters

name
String

The name of the entity set for configured access.

rights
EntitySetRights

The rights allowed for the entity set.

Remarks

The default configuration is to deny access to resources. When a service is initialized the access rights must be enabled.

Applies to