Share via


ODataPath.FirstSegment Property

Gets the first segment in the path. Returns null if the path is empty.

Namespace:  Microsoft.Data.OData.Query.SemanticAst
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public ReadOnly Property FirstSegment As ODataPathSegment 
    Get
'Usage
Dim instance As ODataPath 
Dim value As ODataPathSegment 

value = instance.FirstSegment
public ODataPathSegment FirstSegment { get; }
public:
property ODataPathSegment^ FirstSegment {
    ODataPathSegment^ get ();
}
member FirstSegment : ODataPathSegment
function get FirstSegment () : ODataPathSegment

Property Value

Type: Microsoft.Data.OData.Query.SemanticAst.ODataPathSegment

See Also

Reference

ODataPath Class

Microsoft.Data.OData.Query.SemanticAst Namespace