Share via


Installer.ComponentClients 屬性

唯讀 ComponentClients 屬性會傳回 StringList 物件,列舉指定元件的用戶端集。

這個屬性是唯讀的。

Syntax

propVal = Installer.ComponentClients

屬性值

字串 GUID,表示元件的元件程式碼。 元件代碼是在 Component 資料表的 ComponentId資料行中指定。

備註

若要列舉元件用戶端,應用程式可以使用 For Each 建構逐一查看 StringList 物件。 因為用戶端未排序,所以任何新的元件都有任意索引。 這表示函式可以依任何順序傳回用戶端。

規格需求

需求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_IInstaller定義為 000C1090-0000-0000-C000-000000000046

另請參閱

MsiEnumClients