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
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour