AutoCommit Property

Office Web Discussions Client Visual Basic

expression.AutoCommit

expression    Required. An expression that returns a Discussion object.

Remarks

If this property is set to True, all programmatic changes to individual properties of a Discussion object are immediately committed to the discussion store. If it’s set to False, no property changes are committed to the discussion store until you call the Commit method. If you don’t call the Commit method before ending the session, all pending property changes are lost. The default value is True.

For performance reasons, you may want to set the AutoCommit property to False and use the Commit method as appropriate.

Example

This example sets the AutoCommit property to False for the specified Discussion object.

Dim dscDiscussions As Discussions
Set dscDiscussions = OpenDiscussions("http://samples.microsoft.com")
dscDiscussions(1).Discussions(1).AutoCommit = False