The ISmsClient::AutoDiscoverSite method, in Configuration Manager, retrieves the site code of the locally available site based on the client's current roaming situation, without assigning the client to the site.
[IDL] HRESULT AutoDiscoverSite( BSTR* sSiteCode );
- Data type: BSTRQualifiers: [out, retval]Pointer to the site code of the local site.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
To assign the client to the discovered site, the application uses the ISmsClient::SetAssignedSite Method method.
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.