共用方式為


SqlClientFactory.CreateConnectionStringBuilder 方法

定義

傳回強型別的 DbConnectionStringBuilder 執行個體。

public:
 override System::Data::Common::DbConnectionStringBuilder ^ CreateConnectionStringBuilder();
public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder ();
override this.CreateConnectionStringBuilder : unit -> System.Data.Common.DbConnectionStringBuilder
Public Overrides Function CreateConnectionStringBuilder () As DbConnectionStringBuilder

傳回

的新強型別實例 DbConnectionStringBuilder

範例

下列程式碼片段會傳回強型別 DbConnectionStringBuilder 實例:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbConnectionStringBuilder cmd =
newFactory.CreateConnectionStringBuilder();

適用於