Aracılığıyla paylaş


InvokeMethod.TargetType Özellik

Tanım

türünün türü 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

Özellik Değeri

Hedef nesne türü.

Örnekler

Aşağıdaki kod örneği, etkinliğin InvokeMethod TargetType özelliğini ayarlamayı gösterir. Bu örnek InvokeMethod Etkinliği Kullanma örneğindendir.

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

Açıklamalar

Bu parametre yalnızca çağrılan yöntem statikse ayarlanmalıdır.

Şunlara uygulanır