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>
參數
- type
型別:Microsoft.Data.Edm.IEdmEntityType
實體類型。
傳回值
型別:System.Collections.Generic.IEnumerable<IEdmStructuralProperty>
索引鍵。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IEdmEntityType 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=vs.103) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)。