类SMS_Identification中的 GetSiteID 方法

GetSiteID Configuration Manager中的 Windows Management Instrumentation (WMI) 类方法获取已安装Configuration Manager站点的唯一 ID。

以下语法从托管对象格式 (MOF) 代码中简化,并定义了 方法。

语法

SInt32 GetSiteID(  
   String SiteID  
);  

参数

SiteID
数据类型String

限定符:[out]

Configuration Manager站点的站点 ID。

返回值

一个 SInt32 数据类型,为 0 表示成功,非零表示失败。

有关处理返回的错误的信息,请参阅关于Configuration Manager错误

要求

运行时要求

有关详细信息,请参阅Configuration Manager服务器运行时要求

开发要求

有关详细信息,请参阅Configuration Manager服务器开发要求

另请参阅

SMS_Identification服务器 WMI 类