AutoCompleteAttribute Konstruktorer

Definition

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+ AutoComplete är aktiverat.

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.

Gäller för