Share via


KeySegment Constructors

Definition

Overloads

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

Construct a Segment that represents a key lookup.

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

Construct a Segment that represents a key lookup.

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

Construct a Segment that represents a key lookup.

public KeySegment (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> keys, Microsoft.OData.Edm.IEdmEntityType edmType, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
new Microsoft.OData.UriParser.KeySegment : seq<System.Collections.Generic.KeyValuePair<string, obj>> * Microsoft.OData.Edm.IEdmEntityType * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.OData.UriParser.KeySegment
Public Sub New (keys As IEnumerable(Of KeyValuePair(Of String, Object)), edmType As IEdmEntityType, navigationSource As IEdmNavigationSource)

Parameters

keys
IEnumerable<KeyValuePair<String,Object>>

The set of key property names and the values to be used in searching for the given item.

edmType
IEdmEntityType

The type of the item this key returns.

navigationSource
IEdmNavigationSource

The navigation source that this key is used to search.

Exceptions

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

Applies to

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

Construct a Segment that represents a key lookup.

public KeySegment (Microsoft.OData.UriParser.ODataPathSegment previous, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> keys, Microsoft.OData.Edm.IEdmEntityType edmType, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
new Microsoft.OData.UriParser.KeySegment : Microsoft.OData.UriParser.ODataPathSegment * seq<System.Collections.Generic.KeyValuePair<string, obj>> * Microsoft.OData.Edm.IEdmEntityType * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.OData.UriParser.KeySegment
Public Sub New (previous As ODataPathSegment, keys As IEnumerable(Of KeyValuePair(Of String, Object)), edmType As IEdmEntityType, navigationSource As IEdmNavigationSource)

Parameters

previous
ODataPathSegment

The segment to apply the key to.

keys
IEnumerable<KeyValuePair<String,Object>>

The set of key property names and the values to be used in searching for the given item.

edmType
IEdmEntityType

The type of the item this key returns.

navigationSource
IEdmNavigationSource

The navigation source that this key is used to search.

Exceptions

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

Applies to