FunctionActivatorExtensions.CreateInstance<T> Method
Definition
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 the specified generic type argument, T
, to be used as the target of the invocation.
public static T? CreateInstance<T> (this Microsoft.Azure.Functions.Worker.IFunctionActivator activator, Microsoft.Azure.Functions.Worker.FunctionContext context) where T : class;
static member CreateInstance : Microsoft.Azure.Functions.Worker.IFunctionActivator * Microsoft.Azure.Functions.Worker.FunctionContext -> 'T (requires 'T : null)
<Extension()>
Public Function CreateInstance(Of T As Class) (activator As IFunctionActivator, context As FunctionContext) As T
Type Parameters
- T
The type of the instance to create.
Parameters
- activator
- IFunctionActivator
The IFunctionActivator instance to use when creating the instance.
- context
- FunctionContext
The FunctionContext for the invocation triggering the instance creation.
Returns
T
The created instance.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.