次の方法で共有


ExtensionMethods.Key メソッド (IEdmEntityType)

指定した型のキーを取得します。

名前空間:  Microsoft.Data.Edm
アセンブリ:  Microsoft.Data.Edm (Microsoft.Data.Edm.dll)

構文

'宣言
<ExtensionAttribute> _
Public Shared Function Key ( _
    type As IEdmEntityType _
) As IEnumerable(Of IEdmStructuralProperty)
'使用
Dim type As IEdmEntityType
Dim returnValue As IEnumerable(Of IEdmStructuralProperty)

returnValue = type.Key()
public static IEnumerable<IEdmStructuralProperty> Key(
    this IEdmEntityType type
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmStructuralProperty^>^ Key(
    IEdmEntityType^ type
)
static member Key : 
        type:IEdmEntityType -> IEnumerable<IEdmStructuralProperty> 
public static function Key(
    type : IEdmEntityType
) : IEnumerable<IEdmStructuralProperty>

パラメーター

戻り値

型: System.Collections.Generic.IEnumerable<IEdmStructuralProperty>
キー。

使用に関するメモ

Visual Basic および C# では、このメソッドを型 IEdmEntityType の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。

関連項目

参照

ExtensionMethods クラス

Key オーバーロード

Microsoft.Data.Edm 名前空間