This documentation is archived and is not being maintained.

DataServiceConfiguration.SetEntitySetAccessRule Method

Sets the permissions for the specified entity set resource.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

abstract SetEntitySetAccessRule : 
        name:string * 
        rights:EntitySetRights -> unit 
override SetEntitySetAccessRule : 
        name:string * 
        rights:EntitySetRights -> unit 


Type: System.String
Name of the entity set for which to set permissions.
Type: System.Data.Services.EntitySetRights
Access rights to be granted to this resource, passed as an EntitySetRights value.


IDataServiceConfiguration.SetEntitySetAccessRule(String, EntitySetRights)

When you specify a value of an asterisk (*) for the name parameter, permissions are set for all entity sets that do not have the permissions explicitly set.

This example shows the code-behind page for a Northwind-based data service, with access granted to selected entity sets.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.