HttpActionContextExtensions.TryBindStrongModel<TModel> Method (HttpActionContext, ModelBindingContext, String, ModelMetadataProvider, TModel)

 

Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public static bool TryBindStrongModel<TModel>(
    this HttpActionContext actionContext,
    ModelBindingContext parentBindingContext,
    string propertyName,
    ModelMetadataProvider metadataProvider,
    out TModel model
)
public:
generic<typename TModel>
[ExtensionAttribute]
static bool TryBindStrongModel(
    HttpActionContext^ actionContext,
    ModelBindingContext^ parentBindingContext,
    String^ propertyName,
    ModelMetadataProvider^ metadataProvider,
    [OutAttribute] TModel% model
)
static member TryBindStrongModel<'TModel> : 
        actionContext:HttpActionContext *
        parentBindingContext:ModelBindingContext *
        propertyName:string *
        metadataProvider:ModelMetadataProvider *
        model:'TModel byref -> bool
<ExtensionAttribute>
Public Shared Function TryBindStrongModel(Of TModel) (
    actionContext As HttpActionContext,
    parentBindingContext As ModelBindingContext,
    propertyName As String,
    metadataProvider As ModelMetadataProvider,
    <OutAttribute> ByRef model As TModel
) As Boolean

Parameters

  • model
    Type: TModel

Return Value

Type: System.Boolean

Type Parameters

  • TModel

See Also

HttpActionContextExtensions Class
System.Web.Http.Controllers Namespace

Return to top