DeviceManufacturerNotificationTrigger(String, Boolean) 建構函式

定義

初始化 DeviceManufacturerNotificationTrigger 類別的新實例。

public:
 DeviceManufacturerNotificationTrigger(Platform::String ^ triggerQualifier, bool oneShot);
 DeviceManufacturerNotificationTrigger(winrt::hstring const& triggerQualifier, bool const& oneShot);
/// [Windows.Foundation.Metadata.Deprecated("DeviceManufacturerNotificationTrigger is deprecated and might not work on all platforms", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
 DeviceManufacturerNotificationTrigger(winrt::hstring const& triggerQualifier, bool const& oneShot);
public DeviceManufacturerNotificationTrigger(string triggerQualifier, bool oneShot);
[Windows.Foundation.Metadata.Deprecated("DeviceManufacturerNotificationTrigger is deprecated and might not work on all platforms", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
public DeviceManufacturerNotificationTrigger(string triggerQualifier, bool oneShot);
function DeviceManufacturerNotificationTrigger(triggerQualifier, oneShot)
Public Sub New (triggerQualifier As String, oneShot As Boolean)

參數

triggerQualifier
String

Platform::String

winrt::hstring

限定觸發程式的應用程式定義字串。

oneShot
Boolean

bool

觸發程式是否只使用一次。

屬性

適用於