InvokeMethod.TargetType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The type of the 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
Property Value
The target object type.
Examples
The following code sample demonstrates setting the TargetType property of an 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))),
}
},
Remarks
This parameter must only be set if the invoked method is static.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.