Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
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.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration EntitySetRights
'Usage
Dim instance As EntitySetRights
[FlagsAttribute]
public enum EntitySetRights
[FlagsAttribute]
public enum class EntitySetRights
[<FlagsAttribute>]
type EntitySetRights
public enum EntitySetRights
Members
| 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. |
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);
}
}