DataSourceProvider.IsInitialLoadEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否要阻止或延遲自動載入資料。
public:
property bool IsInitialLoadEnabled { bool get(); void set(bool value); };
public bool IsInitialLoadEnabled { get; set; }
member this.IsInitialLoadEnabled : bool with get, set
Public Property IsInitialLoadEnabled As Boolean
屬性值
false防止或延遲資料自動載入;否則,。 true 預設值為 true。
備註
通常 會在DataSourceProvider第一次被綁定CollectionViewSource或 使用 時執行查詢並設定其Data屬性。 你可以將屬性false設IsInitialLoadEnabled為 ,省略此步驟。 此時,應用程式必須明確呼叫 Refresh ,才能讓提供者取得其資料。