AccessoryManager.DisableNotificationsForApplication(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
選擇不要從指定的應用程式取得快顯通知和應用程式卸載通知。
public:
static void DisableNotificationsForApplication(Platform::String ^ appId);
static void DisableNotificationsForApplication(winrt::hstring const& appId);
public static void DisableNotificationsForApplication(string appId);
function disableNotificationsForApplication(appId)
Public Shared Sub DisableNotificationsForApplication (appId As String)
參數
- appId
-
String
Platform::String
winrt::hstring
應用程式的識別碼。
Windows 需求
應用程式功能 |
accessoryManager
|
備註
呼叫此 API 需要應用程式資訊清單中指定 ID_CAP_SMS 和 ID_CAP_SMS_COMPANION 功能。