InvokeMethod.RunAsynchronously Propriété

Définition

Obtient ou définit une valeur qui indique si la méthode de l’activité est appelée de façon asynchrone.

public:
 property bool RunAsynchronously { bool get(); void set(bool value); };
public bool RunAsynchronously { get; set; }
member this.RunAsynchronously : bool with get, set
Public Property RunAsynchronously As Boolean

Valeur de propriété

true si la méthode s'exécute de façon asynchrone.

Exemples

L'exemple de code suivant montre comment définir la propriété RunAsynchronously d'une activité InvokeMethod. Cet exemple provient de l’exemple Using the InvokeMethod Activity .

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "AsyncMethodSample",
    RunAsynchronously = true,
    Parameters =
    {
        new InArgument<string>("Hello async"),
    }
},

S’applique à