Export (0) Print
Expand All

EntitySetRights Enumeration

An enumeration used to define access rights to data that is deployed by ADO.NET Data Services.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[FlagsAttribute]
public enum EntitySetRights

Member nameDescription
NoneDenies all rights to access data.
ReadSingleAuthorization to read single data items.
ReadMultipleAuthorization to read sets of data.
WriteAppendAuthorization to create new data items in data sets.
WriteReplaceAuthorization to replace data.
WriteDeleteAuthorization to delete data items from data sets.
WriteMergeAuthorization to merge data.
AllReadAuthorization to read data.
AllWriteAuthorization to write data.
AllAuthorization to create, read, update, and delete data.

The following example sets read-only access to all data deployed by the AccountingService.

namespace AccountingServiceWebApp
{
    public class AccountingService :
                DataService<DataModel>
    {
        config.SetResourceContainerAccessRule("*", 
                                ResourceContainerRights.AllRead);

    }
}

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft