Share via


EntitySetConfiguration<TEntityType>.FindBinding Method (NavigationPropertyConfiguration, Boolean)

Finds the NavigationPropertyBindingConfiguration for the given navigation property.

Namespace:  System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Function FindBinding ( _
    navigationConfiguration As NavigationPropertyConfiguration, _
    autoCreate As Boolean _
) As NavigationPropertyBindingConfiguration
'Usage
Dim instance As EntitySetConfiguration 
Dim navigationConfiguration As NavigationPropertyConfiguration 
Dim autoCreate As Boolean 
Dim returnValue As NavigationPropertyBindingConfiguration 

returnValue = instance.FindBinding(navigationConfiguration, _
    autoCreate)
public NavigationPropertyBindingConfiguration FindBinding(
    NavigationPropertyConfiguration navigationConfiguration,
    bool autoCreate
)
public:
NavigationPropertyBindingConfiguration^ FindBinding(
    NavigationPropertyConfiguration^ navigationConfiguration, 
    bool autoCreate
)
member FindBinding : 
        navigationConfiguration:NavigationPropertyConfiguration * 
        autoCreate:bool -> NavigationPropertyBindingConfiguration
public function FindBinding(
    navigationConfiguration : NavigationPropertyConfiguration, 
    autoCreate : boolean
) : NavigationPropertyBindingConfiguration

Parameters

  • autoCreate
    Type: System.Boolean
    true to create the binding if it is not found; otherwise, false.

Return Value

Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The binding if found.

See Also

Reference

EntitySetConfiguration<TEntityType> Class

FindBinding Overload

System.Web.Http.OData.Builder Namespace