Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


LoadBalancingSupportedAttribute.Value Property

Definition

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

public bool Value { get; }

Property Value

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

Examples

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);
    }
}

Applies to

Προϊόν Εκδόσεις
.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