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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈