VBScript GetObject 函數(shù)
定義和用法
GetObject 函數(shù)可返回對(duì)文件中 Automation 對(duì)象的引用。
語(yǔ)法
GetObject([pathname][,class])
參數(shù) | 描述 |
---|---|
pathname | 可選的。包含 automation 對(duì)象的文件的完整路徑和名稱(chēng)。如果此參數(shù)被忽略,就必須有 class 參數(shù)。 |
class | 可選的。automation 對(duì)象的類(lèi)。此參數(shù)使用此語(yǔ)法:appname.objectype。 |