EntitySetRights Enumeration
.NET Framework (current version)
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.
Assembly: System.Data.Services (in System.Data.Services.dll)
| Member name | Description | |
|---|---|---|
| All | Authorization to create, read, update, and delete data. | |
| AllRead | Authorization to read data. | |
| AllWrite | Authorization to write data. | |
| None | Denies all rights to access data. | |
| ReadMultiple | Authorization to read sets of data. | |
| ReadSingle | Authorization to read single data items. | |
| WriteAppend | Authorization to create new data items in data sets. | |
| WriteDelete | Authorization to delete data items from data sets. | |
| WriteMerge | Authorization to merge data. | |
| WriteReplace | Authorization to replace 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);
}
}
.NET Framework
Available since 3.5
Available since 3.5
Show: