LoadBalancingSupportedAttribute.Value Property

 

Gets a value that indicates whether load balancing support is enabled.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public bool Value { get; }

Property Value

Type: System.Boolean

true if load balancing support is enabled; otherwise, false. The default is true.

The following code example gets the value of a LoadBalancingSupported attribute's Value property.

[LoadBalancingSupported(false)]
public class LoadBalancingSupportedAttribute_Value : ServicedComponent
{
    public void ValueExample()
    {
        // Get the LoadBalancingSupportedAttribute applied to the class.
        LoadBalancingSupportedAttribute attribute =
            (LoadBalancingSupportedAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(LoadBalancingSupportedAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("LoadBalancingSupportedAttribute.Value: {0}",
            attribute.Value);
    }
}

.NET Framework
Available since 1.1
Return to top
Show: