Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


AutoCompleteAttribute Constructors

Definition

Sets the application to AutoComplete.

Overloads

AutoCompleteAttribute()

Initializes a new instance of the AutoCompleteAttribute class, specifying that the application should automatically call SetComplete() if the transaction completes successfully.

AutoCompleteAttribute(Boolean)

Initializes a new instance of the AutoCompleteAttribute class, specifying whether COM+ AutoComplete is enabled.

AutoCompleteAttribute()

Initializes a new instance of the AutoCompleteAttribute class, specifying that the application should automatically call SetComplete() if the transaction completes successfully.

C#
public AutoCompleteAttribute();

Examples

The following code example creates a new AutoCompleteAttribute.

C#
[AutoComplete]
public void AutoCompleteAttribute_Ctor()
{
}

Applies to

.NET Framework 4.8.1 és más verziók
Termék Verziók
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AutoCompleteAttribute(Boolean)

Initializes a new instance of the AutoCompleteAttribute class, specifying whether COM+ AutoComplete is enabled.

C#
public AutoCompleteAttribute(bool val);

Parameters

val
Boolean

true to enable AutoComplete in the COM+ object; otherwise, false.

Examples

The following code example creates a new AutoCompleteAttribute.

C#
[AutoComplete(true)]
public void AutoCompleteAttribute_Ctor_Bool()
{
}

Remarks

Specifying a parameter value of false causes the AutoComplete attribute to be ignored.

Applies to

.NET Framework 4.8.1 és más verziók
Termék Verziók
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1