InvokeMethod.TargetType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
該類型 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
屬性值
目標物件類型。
範例
以下程式碼範例示範如何設定活動的 InvokeMethod TargetType 屬性。 此範例來自 「使用 InvokeMethod 活動 」範例。
new InvokeMethod
{
TargetType = typeof(Console),
MethodName = "WriteLine",
Parameters =
{
new InArgument<string>(ctx => string.Format("....the stored value is {0}", resultValue.Get(ctx))),
}
},
備註
此參數僅在被調用方法為靜態時必須設定。