AutoCompleteAttribute 建構函式

定義

將應用程式設為 AutoComplete

多載

AutoCompleteAttribute()

指定應用程式應該要自動呼叫 SetComplete() (如果交易成功完成),初始化 AutoCompleteAttribute 類別的新執行個體。

AutoCompleteAttribute(Boolean)

指定是否啟用 COM+ AutoComplete,初始化 AutoCompleteAttribute 類別的新執行個體。

AutoCompleteAttribute()

指定應用程式應該要自動呼叫 SetComplete() (如果交易成功完成),初始化 AutoCompleteAttribute 類別的新執行個體。

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

範例

下列程式代碼範例會建立新的 AutoCompleteAttribute

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

End Sub

適用於

AutoCompleteAttribute(Boolean)

指定是否啟用 COM+ AutoComplete,初始化 AutoCompleteAttribute 類別的新執行個體。

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

參數

val
Boolean

若要在 COM+ 物件中啟用 true,則為 AutoComplete;否則為 false

範例

下列程式代碼範例會建立新的 AutoCompleteAttribute

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

End Sub

備註

指定的參數 false 值會導致 AutoComplete 忽略 屬性。

適用於