AccessoryManager.GetUserConsent 方法

定义

获取一个布尔值,指示最终用户是否同意附件应用程序接收通知。

public:
 static bool GetUserConsent();
 static bool GetUserConsent();
public static bool GetUserConsent();
function getUserConsent()
Public Shared Function GetUserConsent () As Boolean

返回

Boolean

bool

如果最终用户已同意,则返回 true,否则返回 false。

Windows 要求

应用功能
accessoryManager

注解

调用此 API 需要在应用程序清单中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

适用于