Redigera

Dela via


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.

public:
 AutoCompleteAttribute();
public AutoCompleteAttribute ();
Public Sub New ()

Examples

The following code example creates a new AutoCompleteAttribute.

[AutoComplete]
public void AutoCompleteAttribute_Ctor()
{
}
<AutoComplete()>  _
Public Sub AutoCompleteAttribute_Ctor() 

End Sub

Applies to

AutoCompleteAttribute(Boolean)

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

public:
 AutoCompleteAttribute(bool val);
public AutoCompleteAttribute (bool val);
new System.EnterpriseServices.AutoCompleteAttribute : bool -> System.EnterpriseServices.AutoCompleteAttribute
Public Sub New (val As Boolean)

Parameters

val
Boolean

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

Examples

The following code example creates a new AutoCompleteAttribute.

[AutoComplete(true)]
public void AutoCompleteAttribute_Ctor_Bool()
{
}
<AutoComplete(True)>  _
Public Sub AutoCompleteAttribute_Ctor_Bool() 

End Sub

Remarks

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

Applies to