EntitySetRights Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration used to define access rights to data that is deployed by WCF Data Services.
This enumeration supports a bitwise combination of its member values.
public enum class EntitySetRights
[System.Flags]
public enum EntitySetRights
[<System.Flags>]
type EntitySetRights =
Public Enum EntitySetRights
- Inheritance
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | Denies all rights to access data. |
ReadSingle | 1 | Authorization to read single data items. |
ReadMultiple | 2 | Authorization to read sets of data. |
AllRead | 3 | Authorization to read data. |
WriteAppend | 4 | Authorization to create new data items in data sets. |
WriteReplace | 8 | Authorization to replace data. |
WriteDelete | 16 | Authorization to delete data items from data sets. |
WriteMerge | 32 | Authorization to merge data. |
AllWrite | 60 | Authorization to write data. |
All | 63 | Authorization to create, read, update, and delete 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);
}
}