语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

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