ITransformerConfigurationControl 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义控件实现的协定,以充当 Web 部件连接中的转换器的配置控件。
public interface class ITransformerConfigurationControl
public interface ITransformerConfigurationControl
type ITransformerConfigurationControl = interface
Public Interface ITransformerConfigurationControl
注解
当转换器要求用户对其进行配置时,可以显示配置控件。 配置控件提供一个用户界面(UI),允许用户选择要转换的值。 它呈现在连接区域中。 该方法 WebPartTransformer.CreateConfigurationControl 返回配置控件。
当转换器需要自定义 UI 时,可以重写 CreateConfigurationControl 该方法。 配置控件必须实现 ITransformerConfigurationControl 接口,其中包括 Cancelled 和 Succeeded 事件。 未成功配置或配置转换器控件时,将分别发生这些事件。