NavigationPropertySegment Constructor
Build a segment representing a navigation property.
Namespace: Microsoft.Data.OData.Query.SemanticAst
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
navigationProperty As IEdmNavigationProperty, _
entitySet As IEdmEntitySet _
)
'Usage
Dim navigationProperty As IEdmNavigationProperty
Dim entitySet As IEdmEntitySet
Dim instance As New NavigationPropertySegment(navigationProperty, _
entitySet)
public NavigationPropertySegment(
IEdmNavigationProperty navigationProperty,
IEdmEntitySet entitySet
)
public:
NavigationPropertySegment(
IEdmNavigationProperty^ navigationProperty,
IEdmEntitySet^ entitySet
)
new :
navigationProperty:IEdmNavigationProperty *
entitySet:IEdmEntitySet -> NavigationPropertySegment
public function NavigationPropertySegment(
navigationProperty : IEdmNavigationProperty,
entitySet : IEdmEntitySet
)
Parameters
- navigationProperty
Type: Microsoft.Data.Edm.IEdmNavigationProperty
The navigation property this segment represents.
- entitySet
Type: Microsoft.Data.Edm.IEdmEntitySet
The set of the entities targetted by this navigation property. This can be null.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws if the input navigationProperty is null. |