Edit

Share via


InvokeMethod.Result Property

Definition

The return value of the method operation.

C#
public System.Activities.OutArgument Result { get; set; }

Property Value

The operation's return value.

Examples

The following code sample demonstrates setting the Result property of an InvokeMethod activity. This example is from the Using the InvokeMethod Activity sample.

C#
new InvokeMethod<int>
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "InstanceMethodWithResult",
    Parameters =
    {
        new InArgument<int>(20),
        new InArgument<int>(22)
    },
    Result = resultValue
},

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1