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)

Значение свойства

Аргументы.

Примеры

В следующем примере кода показано задание действия GenericTypeArguments InvokeMethod . Этот пример приведен в примере действия InvokeMethod .

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

Комментарии

Аргументы универсального типа должны быть заданы только в том случае, если вызываемая метод является универсальной.

Применяется к