AutoCompleteAttribute Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Anger programmet till AutoComplete.
Överlagringar
| Name | Description |
|---|---|
| AutoCompleteAttribute() |
Initierar en ny instans av AutoCompleteAttribute klassen och anger att programmet automatiskt ska anropas SetComplete() om transaktionen har slutförts. |
| AutoCompleteAttribute(Boolean) |
Initierar en ny instans av AutoCompleteAttribute klassen och anger om COM+ |
AutoCompleteAttribute()
Initierar en ny instans av AutoCompleteAttribute klassen och anger att programmet automatiskt ska anropas SetComplete() om transaktionen har slutförts.
public:
AutoCompleteAttribute();
public AutoCompleteAttribute();
Public Sub New ()
Exempel
I följande kodexempel skapas en ny AutoCompleteAttribute.
[AutoComplete]
public void AutoCompleteAttribute_Ctor()
{
}
<AutoComplete()> _
Public Sub AutoCompleteAttribute_Ctor()
End Sub
Gäller för
AutoCompleteAttribute(Boolean)
Initierar en ny instans av AutoCompleteAttribute klassen och anger om COM+ AutoComplete är aktiverat.
public:
AutoCompleteAttribute(bool val);
public AutoCompleteAttribute(bool val);
new System.EnterpriseServices.AutoCompleteAttribute : bool -> System.EnterpriseServices.AutoCompleteAttribute
Public Sub New (val As Boolean)
Parametrar
- val
- Boolean
trueför att aktivera AutoComplete i COM+-objektet, annars . false
Exempel
I följande kodexempel skapas en ny AutoCompleteAttribute.
[AutoComplete(true)]
public void AutoCompleteAttribute_Ctor_Bool()
{
}
<AutoComplete(True)> _
Public Sub AutoCompleteAttribute_Ctor_Bool()
End Sub
Kommentarer
Om du anger ett parametervärde false för ignoreras AutoComplete attributet.