The ISmsClient::GetAssignedSite method, in Configuration Manager, gets the currently assigned site of the client.
[IDL] HRESULT GetAssignedSite( BSTR* sSiteCode );
- Data type: BSTRQualifiers: [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:
- The method succeeded.
- The client is not currently assigned to a site.
- An error occurred updating Windows Management Instrumentation (WMI).
Local administrator privileges are required to call this method.
For more information, see Configuration Manager Client Runtime Requirements.
For more information, see Configuration Manager Client Development Requirements.
Send comments about this topic to Microsoft.