다음을 통해 공유


IFunctionActivator.CreateInstance(Type, FunctionContext) Method

Definition

Creates an instance of the provided type to be used as the target of the invocation.

public object? CreateInstance (Type instanceType, Microsoft.Azure.Functions.Worker.FunctionContext context);
abstract member CreateInstance : Type * Microsoft.Azure.Functions.Worker.FunctionContext -> obj
Public Function CreateInstance (instanceType As Type, context As FunctionContext) As Object

Parameters

instanceType
Type

The Type of the instance to create.

context
FunctionContext

The FunctionContext for the invocation triggering the instance creation.

Returns

The created instance.

Applies to