InvokeMethod.TargetObject Proprietà

Definizione

Oggetto contenente il metodo da eseguire.

public:
 property System::Activities::InArgument ^ TargetObject { System::Activities::InArgument ^ get(); void set(System::Activities::InArgument ^ value); };
public System.Activities.InArgument TargetObject { get; set; }
member this.TargetObject : System.Activities.InArgument with get, set
Public Property TargetObject As InArgument

Valore della proprietà

Oggetto .

Esempio

Nell'esempio di codice seguente viene illustrata l'impostazione della proprietà TargetObject di un'attività InvokeMethod . Questo esempio proviene dall'esempio Using the InvokeMethod Activity .This example is from the Using the InvokeMethod Activity sample.

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

Si applica a