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
- keys
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>
The set of key property names and the values to be used in searching for the given item.
- edmType
Type: Microsoft.Data.Edm.IEdmEntityType
The type of the item this key returns.
- entitySet
Type: Microsoft.Data.Edm.IEdmEntitySet
The entity set that this key is used to search.
Exceptions
Exception | Condition |
---|---|
ODataException | Throws if the input entity set is not related to the input type. |