LoadBalancingSupportedAttribute Constructors

Definition

Initializes a new instance of the LoadBalancingSupportedAttribute class.

Overloads

LoadBalancingSupportedAttribute()

Initializes a new instance of the LoadBalancingSupportedAttribute class, specifying load balancing support.

LoadBalancingSupportedAttribute(Boolean)

Initializes a new instance of the LoadBalancingSupportedAttribute class, optionally disabling load balancing support.

LoadBalancingSupportedAttribute()

Initializes a new instance of the LoadBalancingSupportedAttribute class, specifying load balancing support.

C#
public LoadBalancingSupportedAttribute();

Examples

The following code example creates a new LoadBalancingSupportedAttribute.

C#
[LoadBalancingSupported]
public class LoadBalancingSupportedAttribute_Ctor : ServicedComponent
{
}

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

LoadBalancingSupportedAttribute(Boolean)

Initializes a new instance of the LoadBalancingSupportedAttribute class, optionally disabling load balancing support.

C#
public LoadBalancingSupportedAttribute(bool val);

Parameters

val
Boolean

true to enable load balancing support; otherwise, false.

Examples

The following code example creates a new LoadBalancingSupportedAttribute.

C#
[LoadBalancingSupported(false)]
public class LoadBalancingSupportedAttribute_Ctor_Bool : ServicedComponent
{
}

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1