Share via


InvokeMethod.TargetType Eigenschaft

Definition

Der Typ des 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

Eigenschaftswert

Der Zielobjekttyp.

Beispiele

Im folgenden Codebeispiel wird das Festlegen der TargetType-Eigenschaft einer InvokeMethod-Aktivität veranschaulicht. Dieses Beispiel stammt aus dem Beispiel Using the InvokeMethod Activity .

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

Hinweise

Dieser Parameter muss nur festgelegt werden, wenn die aufgerufene Methode statisch ist.

Gilt für: