共用方式為


KeySegment 類別

定義

以路徑表示索引鍵查閱的區段。

public sealed class KeySegment : Microsoft.OData.UriParser.ODataPathSegment
type KeySegment = class
    inherit ODataPathSegment
Public NotInheritable Class KeySegment
Inherits ODataPathSegment
繼承

建構函式

KeySegment(IEnumerable<KeyValuePair<String,Object>>, IEdmEntityType, IEdmNavigationSource)

建構代表索引鍵查閱的區段。

KeySegment(ODataPathSegment, IEnumerable<KeyValuePair<String,Object>>, IEdmEntityType, IEdmNavigationSource)

建構代表索引鍵查閱的區段。

屬性

EdmType

取得這個索引鍵傳回的項目類型

Identifier

傳回此區段的識別碼,也就是不含索引鍵的字串部分。

(繼承來源 ODataPathSegment)
Keys

取得要用於搜尋指定項目之索引鍵屬性名稱和值的集合。

NavigationSource

取得此索引鍵用來搜尋的導覽來源。

方法

HandleWith(PathSegmentHandler)

KeySegment使用 的 PathSegmentHandler 實例來處理 。

TranslateWith<T>(PathSegmentTranslator<T>)

KeySegment使用 的 PathSegmentTranslator<T> 實例來翻譯 。

適用於