Share via


HostDistributionRuleCollection.Commit Method

Commits all the uncommitted host distribution rules.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Commit As Boolean
'Usage
Dim instance As HostDistributionRuleCollection
Dim returnValue As Boolean

returnValue = instance.Commit()
public bool Commit()

Return Value

Type: System.Boolean
true if there were uncommitted host distribution rules and the commit operation finished successfully; otherwise, false.

Exceptions

Exception Condition
Exception

New topology activation failed.

-or-

Commit operation failed.

Remarks

This method commits all the uncommitted changes of host distribution rules to the Search service application.

See Also

Reference

HostDistributionRuleCollection Class

HostDistributionRuleCollection Members

Microsoft.Office.Server.Search.Administration Namespace