共用方式為


DesignerDataConnection.IsConfigured 屬性

定義

會取得一個值,表示連線資訊是否在應用程式的設定檔中。

public:
 property bool IsConfigured { bool get(); };
public bool IsConfigured { get; }
member this.IsConfigured : bool
Public ReadOnly Property IsConfigured As Boolean

屬性值

true如果連接是在應用程式的設定檔中定義的;否則,。 false

備註

屬性 IsConfigured 會顯示 true 該物件是 DesignerDataConnection 從應用程式的設定檔讀取,還是 DesignerDataConnection 該物件是否由方法寫入應用程式的設定檔 IDataEnvironment.ConfigureConnection

當 為 時,屬性Name會設定為設定檔 connectionStrings 元素(ASP.NET Settings Schema)中定義的連線名稱。trueIsConfigured

適用於