描述
IWbemPath.SetServer方法设置路径的服务器部分。
C++ 语法
HRESULT SetServer( [in] LPCWSTR Name );  | 
PowerBASIC 语法
METHOD SetServer ( _ BYREF Name AS WSTRINGZ _ ) AS LONG  | 
参数
Name
新服务器名称。NULL是可接受的值。
返回值
此方法返回一个HRESULT,指示方法调用的状态。
退货代码  | 
描述  | 
S_OK  | 
方法成功执行  | 
WBEM_E_OUT_OF_MEMORY  | 
内存不足。  | 
备注
Windows 2000 / NT:需要WMI SDK Update或Microsoft .NET Framework SDK。
Windows NT:需要Microsoft .NET Framework SDK。
要求
客户  | 
需要Windows Vista或Windows XP。  | 
服务器  | 
需要Windows Server 2008或Windows Server 2003。  | 
可再发行  | 
需要Windows 2000和Windows NT上的WMI可重新分发组件版本1.0。在Windows NT上,它也需要Microsoft .NET Framework。  | 
头  | 
在Wmiutils.inc中声明。  | 
DLL  | 
需要Wmiutils.dll。  | 


