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