InvokeMethod.GenericTypeArguments 속성

정의

포함된 메서드의 제네릭 형식 인수입니다.

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

속성 값

인수입니다.

예제

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

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "GenericInstanceMethod",
    GenericTypeArguments = { typeof(string) },
    Parameters =
    {
        new InArgument<string>("Hello world")
    }
},

설명

호출된 메서드가 제네릭인 경우에만 제네릭 형식 인수를 설정해야 합니다.

적용 대상