UIAutomationPropertyInfo 結構 (uiautomationcore.h)

包含自訂屬性的相關信息。

語法

struct UIAutomationPropertyInfo {
  GUID             guid;
  LPCWSTR          pProgrammaticName;
  UIAutomationType type;
};

成員

guid

類型: GUID

屬性的唯一標識碼。

pProgrammaticName

類型: LPCWSTR

屬性的程式設計名稱 (不可本地化的字串) 。

type

類型: UIAutomationType

UIAutomationType 列舉類型的值,指出屬性值的數據類型。

備註

自定義屬性必須具有 UIAutomationType 列舉所指定的下列其中一個數據類型。 自訂屬性不支援其他數據類型。 如需詳細資訊,請參閱 自定義屬性、事件和控件模式

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista SP2 和 Windows Vista 平臺更新、Windows XP SP3 和 Windows Vista 平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
標頭 uiautomationcore.h (包含 UIAutomation.h)

另請參閱

自訂屬性、事件和控制件模式

RegisterProperty