EntitySetRights Enum

Definition

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

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

public enum class EntitySetRights
[System.Flags]
public enum EntitySetRights
type EntitySetRights = 
Public Enum EntitySetRights
Inheritance
EntitySetRights
Attributes

Fields

All 63

Authorization to create, read, update, and delete data.

AllRead 3

Authorization to read data.

AllWrite 60

Authorization to write data.

None 0

Denies all rights to access data.

ReadMultiple 2

Authorization to read sets of data.

ReadSingle 1

Authorization to read single data items.

WriteAppend 4

Authorization to create new data items in data sets.

WriteDelete 16

Authorization to delete data items from data sets.

WriteMerge 32

Authorization to merge data.

WriteReplace 8

Authorization to replace data.

Examples

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);  
  
    }  
}  
  

Applies to