Share via


InvokeMethod.Parameters 속성

정의

호출할 메서드의 매개 변수 컬렉션입니다.

public:
 property System::Collections::ObjectModel::Collection<System::Activities::Argument ^> ^ Parameters { System::Collections::ObjectModel::Collection<System::Activities::Argument ^> ^ get(); };
public System.Collections.ObjectModel.Collection<System.Activities.Argument> Parameters { get; }
member this.Parameters : System.Collections.ObjectModel.Collection<System.Activities.Argument>
Public ReadOnly Property Parameters As Collection(Of Argument)

속성 값

매개 변수 컬렉션입니다.

예제

다음 코드 샘플에서는 InvokeMethod 활동의 Parameters를 설정하는 방법을 보여 줍니다. 이 예제에서는 합니다 InvokeMethod 활동을 사용 하 여 샘플입니다.

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "InstanceMethod",
    Parameters =
    {
        new InArgument<string>("My favorite number is"),
        new InArgument<int>(42),
        new InArgument<string>("first item of the param array"),
        new InArgument<string>("second item of the param array"),
        new InArgument<string>("third item of the param array")
    }
},

설명

메서드 시그니처에 표시되는 것과 동일한 순서대로 컬렉션에 매개 변수를 추가해야 합니다. 매개 변수를 명명할 수 없습니다 TargetObject 또는 Result합니다.

적용 대상