DataServiceKeyAttribute クラス

エンティティのキー プロパティを示します。

継承階層

System.Object
  System.Attribute
    System.Data.Services.Common.DataServiceKeyAttribute

名前空間:  System.Data.Services.Common
アセンブリ:  Microsoft.Data.Services.Client (Microsoft.Data.Services.Client.dll)

構文

'宣言
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)> _
Public NotInheritable Class DataServiceKeyAttribute _
    Inherits Attribute
'使用
Dim instance As DataServiceKeyAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class DataServiceKeyAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class DataServiceKeyAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type DataServiceKeyAttribute =  
    class
        inherit Attribute
    end
public final class DataServiceKeyAttribute extends Attribute

DataServiceKeyAttribute 型は、以下のメンバーを公開しています。

コンストラクター

  名前 説明
パブリック メソッド DataServiceKeyAttribute(String) DataServiceKeyAttribute クラスの新しいインスタンスを初期化します。
パブリック メソッド DataServiceKeyAttribute(array<String[]) DataServiceKeyAttribute クラスの新しいインスタンスを初期化します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ KeyNames キー属性の名前を取得します。
パブリック プロパティ 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 から継承されています。)

先頭に戻る

説明

DataServiceKeyAttribute 属性は、エンティティ型のインスタンスを一意に識別するために使用できるプロパティのみに適用してください。 ナビゲーション プロパティに適用すると、この属性は無視されます。 詳細については、「リフレクション プロバイダー (WCF Data Services)」を参照してください。

スレッド セーフ

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

関連項目

参照

System.Data.Services.Common 名前空間