RefreshSCF Method in Class SMS_SiteControlFile
The RefreshSCF WMI class method updates your in-memory copy of the site control file from the database.
The following syntax is simplified from MOF code and is intended to show you the definition of the method.
sint32 RefreshSCF(
[in] string SiteCode
);
Parameters
SiteCode
Data type: string
Qualifiers: InIdentifies the site from which you are refreshing your in-memory copy of the site control file.
Return Values
The RefreshSCF method returns a sint32 that is always zero (0).
Remarks
The RefreshSCF method updates your in-memory copy of the site control file with any changes that have been made to the actual site control file. Refreshing your copy of this file helps ensure that you are working with the most up-to-date copy of the site control file. Other applications, including SMS, can change the site control file. Thus, you should use RefreshSCF ** frequently.
Note that you may not see your changes applied when you commit your changes and immediately call RefreshSCF. This is due to possible delays in the commit process. Also, your changes may be overridden by someone else during the period when you committed your data and refreshed your copy of the site control file.
Example Code
For an example that uses the RefreshSCF method, see Managing Site Control Configuration
See Also
Managing Site Control Configuration, Site Configuration Classes, SMS_SiteControlFile