Поделиться через


RefreshSCF Method in Class SMS_SiteControlFile

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 RefreshSCF Windows Management Instrumentation (WMI) class method, in Configuration Manager, updates the in-memory copy of the site control file (SCF) from the database.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 RefreshSCF(
   String SiteCode
);

Parameters

  • SiteCode
    Data type: String

    Qualifiers: [in, SizeLimit("3")]

    The code for the site from which you are refreshing the in-memory copy of the site control file.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Remarks

The RefreshSCF method updates the in-memory copy of the site control file with any changes that have been made to the actual site control file. Refreshing the copy of this file helps ensure that your application is working with the most up-to-date copy of the site control file. Because other applications, including Configuration Manager, can change the site control file, your application should use RefreshSCF frequently.

Changes might be immediately applied when they are committed and the application immediately calls RefreshSCF, due to possible delays in the commit process. Also, changes might be overridden by another application during the period when your application committed data and refreshed the copy of the site control file.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

SMS_SiteControlFile Server WMI Class
About the Configuration Manager Site Control File
Configuration Manager Context Qualifiers