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 ); |
Parameters
- sSiteCode
- Data type: BSTRQualifiers: [out, retval]Pointer to the site code of the local site.
Return Value
An HRESULT code. Possible values include, but are not limited to, the following:
- S_OK
- The method succeeded.
Remarks
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.
Requirements
smsclient.dll
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
Reference
ISmsClient Client COM Automation InterfaceOther Resources
Configuration Manager Client ConfigurationSend comments about this topic to Microsoft.