Share via


KeySegment Constructor

Construct a Segment that represents a key lookup.

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

Syntax

'Declaration
Public Sub New ( _
    keys As IEnumerable(Of KeyValuePair(Of String, Object)), _
    edmType As IEdmEntityType, _
    entitySet As IEdmEntitySet _
)
'Usage
Dim keys As IEnumerable(Of KeyValuePair(Of String, Object))
Dim edmType As IEdmEntityType 
Dim entitySet As IEdmEntitySet 

Dim instance As New KeySegment(keys, edmType, _
    entitySet)
public KeySegment(
    IEnumerable<KeyValuePair<string, Object>> keys,
    IEdmEntityType edmType,
    IEdmEntitySet entitySet
)
public:
KeySegment(
    IEnumerable<KeyValuePair<String^, Object^>>^ keys, 
    IEdmEntityType^ edmType, 
    IEdmEntitySet^ entitySet
)
new : 
        keys:IEnumerable<KeyValuePair<string, Object>> * 
        edmType:IEdmEntityType * 
        entitySet:IEdmEntitySet -> KeySegment
public function KeySegment(
    keys : IEnumerable<KeyValuePair<String, Object>>, 
    edmType : IEdmEntityType, 
    entitySet : IEdmEntitySet
)

Parameters

Exceptions

Exception Condition
ODataException

Throws if the input entity set is not related to the input type.

See Also

Reference

KeySegment Class

Microsoft.Data.OData.Query.SemanticAst Namespace