CommitSCF 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

In Configuration Manager, the CommitSCF Windows Management Instrumentation (WMI) class method commits site control file (SCF) changes to the database.

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

SInt32 CommitSCF(
   String SiteCode
);

Parameters

  • SiteCode
    Data type: String

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

    Site code for the site.

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

Changes made to the in-memory copy of the site control file are not applied to the database until the application calls this method. Although changes to a component item in the site control file might be immediate, there might be some delay before changes are applied to the components themselves. Your application should experience very little delay when committing changes on the local server.

Most delays occur on remote updates in which the current configuration of the site and connectivity issues affect the commit process. For example, the remote site might only accept updates during a certain time period. Thus the committed updates might not be realized until well after the commit process begins.

Note

The CommitSCF method replaces the Commit method from earlier releases.

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