共用方式為


SqlConnectionStringBuilder.AsynchronousProcessing 屬性

定義

警告

AsynchronousProcessing has been deprecated. SqlConnection will ignore the 'Asynchronous Processing' keyword and always allow asynchronous processing.

已過時。 取得或設定布林值,指出使用這個連接字串建立的連接是否允許非同步處理 (Asynchronous Processing)。

public:
 property bool AsynchronousProcessing { bool get(); void set(bool value); };
public bool AsynchronousProcessing { get; set; }
[System.Obsolete("AsynchronousProcessing has been deprecated. SqlConnection will ignore the 'Asynchronous Processing' keyword and always allow asynchronous processing.")]
public bool AsynchronousProcessing { get; set; }
member this.AsynchronousProcessing : bool with get, set
[<System.Obsolete("AsynchronousProcessing has been deprecated. SqlConnection will ignore the 'Asynchronous Processing' keyword and always allow asynchronous processing.")>]
member this.AsynchronousProcessing : bool with get, set
Public Property AsynchronousProcessing As Boolean

屬性值

AsynchronousProcessing 屬性的值,如果未提供任何值,則為 false

屬性

備註

此屬性會對應至連接字串內的 "Asynchronous Processing" 和 "async" 索引鍵。 為了要利用 SqlCommand 物件所提供的非同步處理,關聯之 SqlConnection 物件的連接字串內必須包含這個索引鍵/值組。

適用於

另請參閱