ITransformerConfigurationControl 介面

定義

定義控制項實作做為 Web 組件連接中轉換程式的組態控制項的合約。

public interface class ITransformerConfigurationControl
public interface ITransformerConfigurationControl
type ITransformerConfigurationControl = interface
Public Interface ITransformerConfigurationControl

備註

當轉換器需要使用者進行設定時,可以顯示組態控制項。 組態控制項會提供使用者介面 (UI) ,讓使用者選取要轉換的值。 它會在連接區域中轉譯。 方法會 WebPartTransformer.CreateConfigurationControl 傳回組態控制項。

當您的轉換器需要自訂 UI 時,您可以覆寫 CreateConfigurationControl 方法。 組態控制項必須實作 ITransformerConfigurationControl 介面,其中包含 CancelledSucceeded 事件。 當轉換器控制項未分別設定或設定成功時,就會發生這些事件。

事件

Cancelled

在未完成轉換程式組態時發生。

Succeeded

在未成功完成轉換程式組態時發生。

適用於