Condividi tramite


FunctionContextBindingFeatureExtensions.BindInputAsync<T> Method

Definition

Binds an input binding item for the requested BindingMetadata instance.

public static System.Threading.Tasks.ValueTask<Microsoft.Azure.Functions.Worker.InputBindingData<T>> BindInputAsync<T> (this Microsoft.Azure.Functions.Worker.FunctionContext context, Microsoft.Azure.Functions.Worker.BindingMetadata bindingMetadata);
static member BindInputAsync : Microsoft.Azure.Functions.Worker.FunctionContext * Microsoft.Azure.Functions.Worker.BindingMetadata -> System.Threading.Tasks.ValueTask<Microsoft.Azure.Functions.Worker.InputBindingData<'T>>
<Extension()>
Public Function BindInputAsync(Of T) (context As FunctionContext, bindingMetadata As BindingMetadata) As ValueTask(Of InputBindingData(Of T))

Type Parameters

T

Parameters

context
FunctionContext

The function context.

bindingMetadata
BindingMetadata

The BindingMetadata instance for which input data should bound to.

Returns

An instance of InputBindingData<T> which wraps the input binding operation result value.

Applies to