Share via


ActionConfiguration.SetBindingParameter Method

Specifies the bindingParameter name, type and whether it is alwaysBindable, use only if the Action "isBindable".

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

Syntax

'Declaration
Public Function SetBindingParameter ( _
    name As String, _
    bindingParameterType As IEdmTypeConfiguration, _
    alwaysBindable As Boolean _
) As ActionConfiguration
'Usage
Dim instance As ActionConfiguration 
Dim name As String 
Dim bindingParameterType As IEdmTypeConfiguration 
Dim alwaysBindable As Boolean 
Dim returnValue As ActionConfiguration 

returnValue = instance.SetBindingParameter(name, _
    bindingParameterType, alwaysBindable)
public ActionConfiguration SetBindingParameter(
    string name,
    IEdmTypeConfiguration bindingParameterType,
    bool alwaysBindable
)
public:
ActionConfiguration^ SetBindingParameter(
    String^ name, 
    IEdmTypeConfiguration^ bindingParameterType, 
    bool alwaysBindable
)
member SetBindingParameter : 
        name:string * 
        bindingParameterType:IEdmTypeConfiguration * 
        alwaysBindable:bool -> ActionConfiguration
public function SetBindingParameter(
    name : String, 
    bindingParameterType : IEdmTypeConfiguration, 
    alwaysBindable : boolean
) : ActionConfiguration

Parameters

  • alwaysBindable
    Type: System.Boolean
    true if always bindable; otherwise, false.

Return Value

Type: System.Web.Http.OData.Builder.ActionConfiguration
The binding parameter of this ActionConfiguration.

See Also

Reference

ActionConfiguration Class

System.Web.Http.OData.Builder Namespace