Share via


SPUserCodeService.LoadBalancer property

Gets or sets the load balancer that assigns requests for sandboxed solutions to particular servers when the farm is running sandboxed solutions in affinity mode (sometimes called “remote mode”).

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property LoadBalancer As SPUserCodeLoadBalancerProvider
    Get
    Set
'Usage
Dim instance As SPUserCodeService
Dim value As SPUserCodeLoadBalancerProvider

value = instance.LoadBalancer

instance.LoadBalancer = value
public SPUserCodeLoadBalancerProvider LoadBalancer { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.SPUserCodeLoadBalancerProvider
The load balancer for balancing the sandboxed solutions requests among the servers.

Remarks

Note that there is no load balancing if the farm is configured to run sandboxed solutions in local mode or if only one server is running the service in remote ('affinity') mode.

See also

Reference

SPUserCodeService class

SPUserCodeService members

Microsoft.SharePoint.Administration namespace