InvokeMethod.TargetType Proprietà

Definizione

Tipo di 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

Valore della proprietà

Tipo di oggetto di destinazione.

Esempio

Nell'esempio di codice seguente viene illustrata l'impostazione della proprietà TargetType di un'attività InvokeMethod . Questo esempio proviene dall'esempio Using the InvokeMethod Activity .This example is from the Using the InvokeMethod Activity sample.

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

Commenti

Questo parametro deve essere impostato solo se il metodo richiamato è statico.

Si applica a