Share via


InvokeMethod.TargetType Propiedad

Definición

Tipo de la propiedad TargetObject.

public:
 property Type ^ TargetType { Type ^ get(); void set(Type ^ value); };
public Type TargetType { get; set; }
member this.TargetType : Type with get, set
Public Property TargetType As Type

Valor de propiedad

El tipo del objeto de destino.

Ejemplos

En el siguiente ejemplo de código se muestra cómo se establece la propiedad TargetType de una actividad de la clase InvokeMethod. Este ejemplo procede del ejemplo Using the InvokeMethod Activity ( Usar la actividad InvokeMethod ).

new InvokeMethod
{
    TargetType = typeof(Console),
    MethodName = "WriteLine",
    Parameters =
    {
        new InArgument<string>(ctx => string.Format("....the stored value is {0}", resultValue.Get(ctx))),
    }
},

Comentarios

Este parámetro solamente se debe establecer si el método invocado es estático.

Se aplica a