共用方式為


AccessoryManager.DoNotDisturbEnabled 屬性

定義

取得值,指出不會干擾是否在手機上生效。

public:
 static property bool DoNotDisturbEnabled { bool get(); };
static bool DoNotDisturbEnabled();
public static bool DoNotDisturbEnabled { get; }
var boolean = AccessoryManager.doNotDisturbEnabled;
Public Shared ReadOnly Property DoNotDisturbEnabled As Boolean

屬性值

Boolean

bool

如果未開啟干擾,則傳回 true,否則傳回 false。

Windows 需求

應用程式功能
accessoryManager

備註

呼叫此 API 需要應用程式資訊清單中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

適用於