ContextItemManager.Subscribe Yöntem

Tanım

Aşırı Yüklemeler

Subscribe(Type, SubscribeContextCallback)

Türetilmiş bir sınıfta geçersiz kılındığında, belirtilen öğe türündeki bir bağlam öğesi değiştiğinde çağrılan bir olay geri çağırması ekler.

Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Belirtilen öğe türündeki bir bağlam öğesi değiştiğinde çağrılan bir olay geri çağırması ekler.

Subscribe(Type, SubscribeContextCallback)

Türetilmiş bir sınıfta geçersiz kılındığında, belirtilen öğe türündeki bir bağlam öğesi değiştiğinde çağrılan bir olay geri çağırması ekler.

public:
 abstract void Subscribe(Type ^ contextItemType, System::Activities::Presentation::SubscribeContextCallback ^ callback);
public abstract void Subscribe (Type contextItemType, System.Activities.Presentation.SubscribeContextCallback callback);
abstract member Subscribe : Type * System.Activities.Presentation.SubscribeContextCallback -> unit
Public MustOverride Sub Subscribe (contextItemType As Type, callback As SubscribeContextCallback)

Parametreler

contextItemType
Type

Abone olmak istediğiniz öğenin türü.

callback
SubscribeContextCallback

Değiştiğinde SubscribeContextCallback çağrılan contextItemType .

Özel durumlar

contextItemType veya callback şeklindedir null.

Şunlara uygulanır

Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Belirtilen öğe türündeki bir bağlam öğesi değiştiğinde çağrılan bir olay geri çağırması ekler.

public:
generic <typename TContextItemType>
 where TContextItemType : System::Activities::Presentation::ContextItem void Subscribe(System::Activities::Presentation::SubscribeContextCallback<TContextItemType> ^ callback);
public void Subscribe<TContextItemType> (System.Activities.Presentation.SubscribeContextCallback<TContextItemType> callback) where TContextItemType : System.Activities.Presentation.ContextItem;
member this.Subscribe : System.Activities.Presentation.SubscribeContextCallback<'ContextItemType (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)> -> unit (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)
Public Sub Subscribe(Of TContextItemType As ContextItem) (callback As SubscribeContextCallback(Of TContextItemType))

Tür Parametreleri

TContextItemType

Abone olmak istediğiniz öğenin türü.

Parametreler

callback
SubscribeContextCallback<TContextItemType>

SubscribeContextCallback<TContextItemType> Değiştiğinde contextItemType çağrılan bir.

Özel durumlar

contextItemType veya callback şeklindedir null.

Şunlara uygulanır