Share via


NavigationSourceConfiguration.FindBinding Method

 

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

Overload List

Name Description
System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration)

Finds the binding for the given navigation property and tries to create it if it doesnot exist.

System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration, Boolean)

Finds the binding for the given navigation property.

System_CAPS_pubmethod FindBinding(String)

Gets the NavigationPropertyBindingConfiguration for the navigation property with the given name.

See Also

NavigationSourceConfiguration Class
System.Web.OData.Builder Namespace

Return to top

Finds the binding for the given navigation property and tries to create it if it doesnot exist.

Syntax

public virtual NavigationPropertyBindingConfiguration FindBinding(
    NavigationPropertyConfiguration navigationConfiguration
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
    NavigationPropertyConfiguration^ navigationConfiguration
)
abstract FindBinding : 
        navigationConfiguration:NavigationPropertyConfiguration -> NavigationPropertyBindingConfiguration
override FindBinding : 
        navigationConfiguration:NavigationPropertyConfiguration -> NavigationPropertyBindingConfiguration
Public Overridable Function FindBinding (
    navigationConfiguration As NavigationPropertyConfiguration
) As NavigationPropertyBindingConfiguration

Parameters

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The NavigationPropertyBindingConfiguration so that it can be further configured.

Implements

INavigationSourceConfiguration.FindBinding(NavigationPropertyConfiguration)

Return to top

Finds the binding for the given navigation property.

Syntax

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 Overridable Function FindBinding (
    navigationConfiguration As NavigationPropertyConfiguration,
    autoCreate As Boolean
) As NavigationPropertyBindingConfiguration

Parameters

  • autoCreate
    Type: System.Boolean

    Tells whether the binding should be auto created if it does not exist.

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The NavigationPropertyBindingConfiguration so that it can be further configured.

Implements

INavigationSourceConfiguration.FindBinding(NavigationPropertyConfiguration, Boolean)

Return to top

Gets the NavigationPropertyBindingConfiguration for the navigation property with the given name.

Syntax

public virtual NavigationPropertyBindingConfiguration FindBinding(
    string propertyName
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
    String^ propertyName
)
abstract FindBinding : 
        propertyName:string -> NavigationPropertyBindingConfiguration
override FindBinding : 
        propertyName:string -> NavigationPropertyBindingConfiguration
Public Overridable Function FindBinding (
    propertyName As String
) As NavigationPropertyBindingConfiguration

Parameters

  • propertyName
    Type: System.String

    The name of the navigation property.

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The NavigationPropertyBindingConfiguration.

Implements

INavigationSourceConfiguration.FindBinding(String)

Return to top