TypeSegment Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TypeSegment(IEdmType, IEdmNavigationSource) |
Build a type segment using the given |
TypeSegment(IEdmType, IEdmType, IEdmNavigationSource) |
Build the type segment based on the giving |
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.