EntitySetAttribute 类

指示客户端数据服务类所属的实体集。

继承层次结构

System.Object
  System.Attribute
    System.Data.Services.Common.EntitySetAttribute

命名空间:  System.Data.Services.Common
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)> _
Public NotInheritable Class EntitySetAttribute _
    Inherits Attribute
用法
Dim instance As EntitySetAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EntitySetAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class EntitySetAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type EntitySetAttribute =  
    class
        inherit Attribute
    end
public final class EntitySetAttribute extends Attribute

EntitySetAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 EntitySetAttribute 创建 EntitySetAttribute 的新实例。

页首

属性

  名称 说明
公共属性 EntitySet 获取类所属的实体集。
公共属性 TypeId (从 Attribute 继承。)

页首

方法

  名称 说明
公共方法 Equals (从 Attribute 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Attribute 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 IsDefaultAttribute (从 Attribute 继承。)
公共方法 Match (从 Attribute 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.GetTypeInfo (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.Invoke (从 Attribute 继承。)

页首

注释

EntitySetAttribute 类在数据绑定期间由客户端使用以确定类所属的实体集的名称。 使用绑定选项时,此属性由添加服务引用对话框生成;提供/绑定选项时,此属性由 DataSvcUtil.exe 生成。

您必须将 EntitySetAttribute 应用到与数据绑定一起使用的任何用户提供的客户端数据服务类。

当一个实体集与该类型关联时,仅支持 EntitySetAttribute。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

System.Data.Services.Common 命名空间