Share via


TypeSegment Constructors

Definition

Overloads

TypeSegment(IEdmType, IEdmNavigationSource)

Build a type segment using the given actualType.

TypeSegment(IEdmType, IEdmType, IEdmNavigationSource)

Build the type segment based on the giving actualType and expectedType

TypeSegment(IEdmType, IEdmNavigationSource)

Build a type segment using the given actualType.

public TypeSegment (Microsoft.OData.Edm.IEdmType actualType, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
new Microsoft.OData.UriParser.TypeSegment : Microsoft.OData.Edm.IEdmType * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.OData.UriParser.TypeSegment
Public Sub New (actualType As IEdmType, navigationSource As IEdmNavigationSource)

Parameters

actualType
IEdmType

The target type of this segment, which may be collection type.

navigationSource
IEdmNavigationSource

The navigation source containing the entities that we are casting. This can be null.

Exceptions

Throws if the actual edmType is null.

Throws if the actual edmType is not related to the type of elements in the input navigationSource.

Applies to

TypeSegment(IEdmType, IEdmType, IEdmNavigationSource)

Build the type segment based on the giving actualType and expectedType

public TypeSegment (Microsoft.OData.Edm.IEdmType actualType, Microsoft.OData.Edm.IEdmType expectedType, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
new Microsoft.OData.UriParser.TypeSegment : Microsoft.OData.Edm.IEdmType * Microsoft.OData.Edm.IEdmType * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.OData.UriParser.TypeSegment
Public Sub New (actualType As IEdmType, expectedType As IEdmType, navigationSource As IEdmNavigationSource)

Parameters

actualType
IEdmType

The actual type of this segment passed from Uri, which may be collection type.

expectedType
IEdmType

The type reflected from model.

navigationSource
IEdmNavigationSource

The navigation source containing the entity or complex that we are casting. This can be null.

Exceptions

Throws if the actual or expected edmType is null.

Throws if the actual edmType is not related to the expected type of elements in the input navigationSource.

Applies to