PhoneTrigger(PhoneTriggerType, Boolean) 建構函式

定義

初始化 PhoneTrigger 類別的新實例。

public:
 PhoneTrigger(PhoneTriggerType type, bool oneShot);
 PhoneTrigger(PhoneTriggerType const& type, bool const& oneShot);
public PhoneTrigger(PhoneTriggerType type, bool oneShot);
function PhoneTrigger(type, oneShot)
Public Sub New (type As PhoneTriggerType, oneShot As Boolean)

參數

type
PhoneTriggerType

指定手機事件的類型。

oneShot
Boolean

bool

指出觸發程式是否為單次通知。 如果您未在傳送單次通知時訂閱,則不會收到任何訊息。 如果您在引發單次通知時未連線,則不會發生任何動作。

適用於