EntitySetRights EntitySetRights EntitySetRights 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
EntitySetRightsEntitySetRightsEntitySetRightsEntitySetRights
Attributes

Fields

All All All All 63

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

AllRead AllRead AllRead AllRead 3

Authorization to read data.

AllWrite AllWrite AllWrite AllWrite 60

Authorization to write data.

None None None None 0

Denies all rights to access data.

ReadMultiple ReadMultiple ReadMultiple ReadMultiple 2

Authorization to read sets of data.

ReadSingle ReadSingle ReadSingle ReadSingle 1

Authorization to read single data items.

WriteAppend WriteAppend WriteAppend WriteAppend 4

Authorization to create new data items in data sets.

WriteDelete WriteDelete WriteDelete WriteDelete 16

Authorization to delete data items from data sets.

WriteMerge WriteMerge WriteMerge WriteMerge 32

Authorization to merge data.

WriteReplace WriteReplace WriteReplace 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