DesignerDataConnection.IsConfigured 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得一個值,表示連線資訊是否在應用程式的設定檔中。
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