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 クラスは、クラスが属するエンティティ セットの名前を特定するために、データ バインド中にクライアントによって使用されます。 この属性は、Binding オプションを使用するときは [サービス参照の追加] ダイアログ ボックスで生成します。また、/binding オプションを指定するときは DataSvcUtil.exe ツールで生成します。

EntitySetAttribute は、データ バインドで使用されるユーザー指定のクライアント データ サービス クラスに適用する必要があります。

EntitySetAttribute は、型に 1 つのエンティティ セットが関連付けられている場合にのみサポートされます。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

関連項目

参照

System.Data.Services.Common 名前空間