Share via


INodeServices.InvokeExportAsync Méthode

Définition

Surcharges

InvokeExportAsync<T>(String, String, Object[])

Appelle de manière asynchrone du code dans le Node.js instance.

InvokeExportAsync<T>(CancellationToken, String, String, Object[])

Appelle de manière asynchrone du code dans le Node.js instance.

InvokeExportAsync<T>(String, String, Object[])

Appelle de manière asynchrone du code dans le Node.js instance.

public:
generic <typename T>
 System::Threading::Tasks::Task<T> ^ InvokeExportAsync(System::String ^ moduleName, System::String ^ exportedFunctionName, ... cli::array <System::Object ^> ^ args);
public System.Threading.Tasks.Task<T> InvokeExportAsync<T> (string moduleName, string exportedFunctionName, params object[] args);
abstract member InvokeExportAsync : string * string * obj[] -> System.Threading.Tasks.Task<'T>
Public Function InvokeExportAsync(Of T) (moduleName As String, exportedFunctionName As String, ParamArray args As Object()) As Task(Of T)

Paramètres de type

T

Type de données sérialisable JSON que le code Node.js retournera de manière asynchrone.

Paramètres

moduleName
String

Chemin d’accès au module Node.js (par exemple, fichier JavaScript) par rapport à la racine de votre projet qui contient le code à appeler.

exportedFunctionName
String

Spécifie l’exportation CommonJS à appeler.

args
Object[]

Toute séquence d’arguments sérialisables JSON à passer à la fonction Node.js.

Retours

Task<T>

Task<TResult> représentant la fin de l’appel RPC.

S’applique à

InvokeExportAsync<T>(CancellationToken, String, String, Object[])

Appelle de manière asynchrone du code dans le Node.js instance.

public:
generic <typename T>
 System::Threading::Tasks::Task<T> ^ InvokeExportAsync(System::Threading::CancellationToken cancellationToken, System::String ^ moduleName, System::String ^ exportedFunctionName, ... cli::array <System::Object ^> ^ args);
public System.Threading.Tasks.Task<T> InvokeExportAsync<T> (System.Threading.CancellationToken cancellationToken, string moduleName, string exportedFunctionName, params object[] args);
abstract member InvokeExportAsync : System.Threading.CancellationToken * string * string * obj[] -> System.Threading.Tasks.Task<'T>
Public Function InvokeExportAsync(Of T) (cancellationToken As CancellationToken, moduleName As String, exportedFunctionName As String, ParamArray args As Object()) As Task(Of T)

Paramètres de type

T

Type de données sérialisable JSON que le code Node.js retournera de manière asynchrone.

Paramètres

cancellationToken
CancellationToken

CancellationToken qui peut être utilisé pour annuler l’appel.

moduleName
String

Chemin d’accès au module Node.js (par exemple, fichier JavaScript) par rapport à la racine de votre projet qui contient le code à appeler.

exportedFunctionName
String

Spécifie l’exportation CommonJS à appeler.

args
Object[]

Toute séquence d’arguments sérialisables JSON à passer à la fonction Node.js.

Retours

Task<T>

Task<TResult> représentant la fin de l’appel RPC.

S’applique à