Server.EndUpdateBatch Method [IIS 7 and higher]

Ends a batch of configuration changes.

Syntax

oServer.EndUpdateBatch
oServer.EndUpdateBatch();

Parameters

Name

Description

DoCommitChanges

An optional boolean value. true if the batch changes of configuration changes that have been made will be committed; otherwise, false.

Return Value

This method does not return a value.

Remarks

Batch updates should be done between calls to the BeginUpdateBatch method of the Server class and this method. All updates should be made to the same commit path that you specify in the Path parameter of the BeginUpdateBatch method. If you want to discard the changes that have been made in memory, set the DoCommitChanges parameter to false.

Note

The BeginUpdateBatch and EndUpdateBatch methods work only while the current WMI worker process is running. If the process is shut down by WMI due to idle timeout (normally after 30 seconds), any changes that have been made will be lost.

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

Server Class [IIS 7 and higher]

Server.BeginUpdateBatch Method [IIS 7 and higher]