AutoCompleteAttribute.Value Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene un valore che indica l'impostazione dell'opzione AutoComplete
in COM+.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Valore della proprietà
true
se AutoComplete
è attivato in COM+, in caso contrario false
. Il valore predefinito è true
.
Esempio
L'esempio di codice seguente ottiene il valore della proprietà di Value un AutoComplete
attributo.
[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
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per