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")
    }
},

注釈

ジェネリック型引数は、呼び出されたメソッドがジェネリックの場合にのみ設定する必要があります。

適用対象