AutoCompleteAttribute.Value Property
Definition
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 indicating the setting of the AutoComplete
option in COM+.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Property Value
true
if AutoComplete
is enabled in COM+; otherwise, false
. The default is true
.
Examples
The following code example gets the value of an AutoComplete
attribute's Value property.
[AutoComplete(false)]
public void AutoCompleteAttribute_Value()
{
// Get information on the member.
System.Reflection.MemberInfo[] memberinfo =
this.GetType().GetMember(
"AutoCompleteAttribute_Value");
// Get the AutoCompleteAttribute applied to the member.
AutoCompleteAttribute attribute =
(AutoCompleteAttribute)System.Attribute.GetCustomAttribute(
memberinfo[0],
typeof(AutoCompleteAttribute),
false);
// Display the value of the attribute's Value property.
Console.WriteLine("AutoCompleteAttribute.Value: {0}", attribute.Value);
}
<AutoComplete(False)> _
Public Sub AutoCompleteAttribute_Value()
' Get information on the member.
Dim memberinfo As System.Reflection.MemberInfo() = Me.GetType().GetMember("AutoCompleteAttribute_Value")
' Get the AutoCompleteAttribute applied to the member.
Dim attribute As AutoCompleteAttribute = CType(System.Attribute.GetCustomAttribute(memberinfo(0), GetType(AutoCompleteAttribute), False), AutoCompleteAttribute)
' Display the value of the attribute's Value property.
MsgBox("AutoCompleteAttribute.Value: " & attribute.Value)
End Sub
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.