Share via


EntitySetConfiguration.FindBinding Method (NavigationPropertyConfiguration, Boolean)

Finds the binding 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 Overridable 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 virtual NavigationPropertyBindingConfiguration FindBinding(
    NavigationPropertyConfiguration navigationConfiguration,
    bool autoCreate
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
    NavigationPropertyConfiguration^ navigationConfiguration, 
    bool autoCreate
)
abstract FindBinding : 
        navigationConfiguration:NavigationPropertyConfiguration * 
        autoCreate:bool -> NavigationPropertyBindingConfiguration  
override FindBinding : 
        navigationConfiguration:NavigationPropertyConfiguration * 
        autoCreate:bool -> NavigationPropertyBindingConfiguration
public function FindBinding(
    navigationConfiguration : NavigationPropertyConfiguration, 
    autoCreate : boolean
) : NavigationPropertyBindingConfiguration

Parameters

  • autoCreate
    Type: System.Boolean
    Tells whether the binding should be auto created if it does not exist.

Return Value

Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.

See Also

Reference

EntitySetConfiguration Class

FindBinding Overload

System.Web.Http.OData.Builder Namespace