共用方式為


AlternateKeysODataUriResolver.ResolveKeys 方法

定義

解析特定實體集的索引鍵,當索引鍵指定為名稱值組時,會呼叫此函式。 例如 EntitySet (ID='key')

public override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> ResolveKeys (Microsoft.OData.Edm.IEdmEntityType type, System.Collections.Generic.IDictionary<string,string> namedValues, Func<Microsoft.OData.Edm.IEdmTypeReference,string,object> convertFunc);
override this.ResolveKeys : Microsoft.OData.Edm.IEdmEntityType * System.Collections.Generic.IDictionary<string, string> * Func<Microsoft.OData.Edm.IEdmTypeReference, string, obj> -> seq<System.Collections.Generic.KeyValuePair<string, obj>>
Public Overrides Function ResolveKeys (type As IEdmEntityType, namedValues As IDictionary(Of String, String), convertFunc As Func(Of IEdmTypeReference, String, Object)) As IEnumerable(Of KeyValuePair(Of String, Object))

參數

type
IEdmEntityType

目前實體集的類型。

namedValues
IDictionary<String,String>

名稱值組的字典。

convertFunc
Func<IEdmTypeReference,String,Object>

要用於值轉換的 convert 函式。

傳回

已解析的金鑰清單。

適用於