ISmsClient::GetAssignedSite Method
System Center
Updated: October 28, 2009
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
The ISmsClient::GetAssignedSite method, in Configuration Manager, gets the currently assigned site of the client.
[IDL]
HRESULT GetAssignedSite(
BSTR* sSiteCode
);
Parameters
- sSiteCode
- Data type: BSTR Qualifiers: [out, retval] Pointer to the site code of the currently assigned site of the client.
An HRESULT code. Possible values include, but are not limited to, the following:
- S_OK
- The method succeeded.
- SMSCLIENT_E_NOASSIGNEDSITE
- The client is not currently assigned to a site.
- WBEM_E_xxxx
- An error occurred updating Windows Management Instrumentation (WMI).
Local administrator privileges are required to call this method.
smsclient.dll
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
Show: