LoadBalancingSupportedAttribute.Value Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether load balancing support is enabled.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As 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);
}
}
<LoadBalancingSupported(False)> _
Public Class LoadBalancingSupportedAttribute_Value
Inherits ServicedComponent
Public Sub ValueExample()
' Get the LoadBalancingSupportedAttribute applied to the class.
Dim attribute As LoadBalancingSupportedAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(LoadBalancingSupportedAttribute), False), LoadBalancingSupportedAttribute)
' Display the value of the attribute's Value property.
MsgBox("LoadBalancingSupportedAttribute.Value: " & attribute.Value)
End Sub
End Class
Προϊόν | Εκδόσεις |
---|---|
.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 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: