Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IBindableFromHttpContext<TSelf>.BindAsync Method

Definition

Namespace:
Microsoft.AspNetCore.Http
Assembly:
Microsoft.AspNetCore.Http.Abstractions.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
IBindableFromHttpContextOfT.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates an instance of TSelf from the HttpContext.

public static abstract System.Threading.Tasks.ValueTask<TSelf?> BindAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Reflection.ParameterInfo parameter);
static member BindAsync : Microsoft.AspNetCore.Http.HttpContext * System.Reflection.ParameterInfo -> System.Threading.Tasks.ValueTask<'Self (requires 'Self : null and 'Self :> Microsoft.AspNetCore.Http.IBindableFromHttpContext<'Self>)>
Public Shared Function BindAsync (context As HttpContext, parameter As ParameterInfo) As ValueTask(Of TSelf)

Parameters

context
HttpContext

The HttpContext for the current request.

parameter
ParameterInfo

The ParameterInfo for the parameter of the route handler delegate the returned instance will populate.

Returns

ValueTask<TSelf>

The instance of TSelf.

Applies to


Feedback

Was this page helpful?