Share via


SPServiceLoadBalancer.Provision Method

Provisions the load balancer by bootstrapping the object used to store the service addresses in the local configuration database. The implementation of this method requires that the URI be a topology-service aware URI. Override this method to provide your own implementation for bootstrapping service addresses from the parent farm.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Sub Provision
'Usage
Dim instance As SPServiceLoadBalancer

instance.Provision()
public virtual void Provision()

Exceptions

Exception Condition
InvalidOperationException

An invalid operation was attempted. This is caused if the URI is null, or if there is no local instance of the farm (Local() returns null.) This is also caused if the specified service URI cannot be load balanced by the default load balancer due to a format problem or overflow.

See Also

Reference

SPServiceLoadBalancer Class

SPServiceLoadBalancer Members

Microsoft.SharePoint Namespace