ContextItemManager.Subscribe Metode

Definisi

Overload

Subscribe(Type, SubscribeContextCallback)

Saat ditimpa di kelas turunan, menambahkan panggilan balik peristiwa yang dipanggil saat item konteks dari jenis item yang ditentukan berubah.

Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Menambahkan panggilan balik peristiwa yang dipanggil saat item konteks dari jenis item yang ditentukan berubah.

Subscribe(Type, SubscribeContextCallback)

Saat ditimpa di kelas turunan, menambahkan panggilan balik peristiwa yang dipanggil saat item konteks dari jenis item yang ditentukan berubah.

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)

Parameter

contextItemType
Type

Jenis item yang ingin Anda berlangganan.

callback
SubscribeContextCallback

SubscribeContextCallback yang dipanggil ketika contextItemType berubah.

Pengecualian

contextItemType atau callback adalah null.

Berlaku untuk

Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Menambahkan panggilan balik peristiwa yang dipanggil saat item konteks dari jenis item yang ditentukan berubah.

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))

Jenis parameter

TContextItemType

Jenis item yang ingin Anda berlangganan.

Parameter

callback
SubscribeContextCallback<TContextItemType>

SubscribeContextCallback<TContextItemType> Yang dipanggil saat contextItemType berubah.

Pengecualian

contextItemType atau callback adalah null.

Berlaku untuk