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 보여 줍니다. 이 예제는 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")
    }
},

설명

매개 변수는 메서드 서명에 표시되는 순서와 동일한 순서로 컬렉션에 추가해야 합니다. 매개 변수의 이름을 지정할 TargetObjectResult수 없거나 .

적용 대상