AutoCompleteAttribute.Value Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une valeur indiquant le paramètre de l’option AutoComplete
dans COM+.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Valeur de propriété
true
si AutoComplete
est activé dans COM+ ; sinon, false
. La valeur par défaut est true
.
Exemples
L’exemple de code suivant obtient la valeur de la propriété d’un AutoComplete
Value attribut.
[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
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour