IDataServiceConfiguration.SetEntitySetAccessRule(String, EntitySetRights) Método
Definición
Establece las reglas de acceso para el conjunto de entidades especificado.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)
Parámetros
- name
- String
Nombre del conjunto de entidades para el acceso configurado.The name of the entity set for configured access.
- rights
- EntitySetRights
Derechos permitidos para el conjunto de entidades.The rights allowed for the entity set.
Comentarios
La configuración predeterminada es denegar el acceso a los recursos.The default configuration is to deny access to resources. Cuando se inicializa un servicio, los derechos de acceso deben estar habilitados.When a service is initialized the access rights must be enabled.