共用方式為


SingletonSegment 類別

定義

代表路徑中單一的區段。

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

建構函式

SingletonSegment(IEdmSingleton)

建置代表單一的區段

屬性

EdmType

IEdmType取得這個 SingletonSegment 的 。 這一律會是 IEdmEntityType 這個單一的 。

Identifier

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

(繼承來源 ODataPathSegment)
Singleton

取得此區段所表示的 singleton。

方法

HandleWith(PathSegmentHandler)

SingletonSegment使用 的 PathSegmentHandler 實例來處理 。

TranslateWith<T>(PathSegmentTranslator<T>)

SingletonSegment使用 的實例,將 轉譯成另一種型別 PathSegmentTranslator<T>

適用於