RowToParametersTransformer 类
定义
在 Web 部件连接中,对从提供者(实现 IWebPartRow 接口)到使用者(接收来自实现 IWebPartParameters 接口的提供者的数据)的数据进行转换。Transforms data in a Web Parts connection from a provider that implements the IWebPartRow interface to a consumer expecting to receive data from a provider that implements the IWebPartParameters interface.
public ref class RowToParametersTransformer sealed : System::Web::UI::WebControls::WebParts::WebPartTransformer, System::Web::UI::WebControls::WebParts::IWebPartParameters
[System.Web.UI.WebControls.WebParts.WebPartTransformer(typeof(System.Web.UI.WebControls.WebParts.IWebPartRow), typeof(System.Web.UI.WebControls.WebParts.IWebPartParameters))]
public sealed class RowToParametersTransformer : System.Web.UI.WebControls.WebParts.WebPartTransformer, System.Web.UI.WebControls.WebParts.IWebPartParameters
[<System.Web.UI.WebControls.WebParts.WebPartTransformer(typeof(System.Web.UI.WebControls.WebParts.IWebPartRow), typeof(System.Web.UI.WebControls.WebParts.IWebPartParameters))>]
type RowToParametersTransformer = class
inherit WebPartTransformer
interface IWebPartParameters
Public NotInheritable Class RowToParametersTransformer
Inherits WebPartTransformer
Implements IWebPartParameters
- 继承
- 属性
- 实现
注解
转换器在 Web 部件连接中使用,以在具有不兼容连接点的两个 Web 部件控件之间转换数据。Transformers are used in a Web Parts connection to translate data between two Web Parts controls with incompatible connection points. RowToParametersTransformer类将数据从实现接口的提供程序转换 IWebPartRow 为需要接收来自实现接口的提供程序的数据的使用者 IWebPartParameters 。The RowToParametersTransformer class transforms data from a provider implementing the IWebPartRow interface to a consumer expecting to receive data from a provider that implements the IWebPartParameters interface.
构造函数
| RowToParametersTransformer() |
初始化 RowToParametersTransformer 类的新实例。Initializes a new instance of the RowToParametersTransformer class. |
属性
| ConsumerFieldNames |
获取或设置使用者中的名称列表,这些名称将接收提供者的值。Gets or sets the list of names in the consumer that will receive the values from the provider. |
| ProviderFieldNames |
获取或设置提供者的字段名称列表。Gets or sets the list of field names from the provider. |
方法
| CreateConfigurationControl() |
提供一个 ASP.NET 控件,该控件允许用户在 RowToParametersTransformer 区域中配置 ConnectionsZone 转换器。Provides an ASP.NET control that allows the user to configure a RowToParametersTransformer transformer in the ConnectionsZone zone. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| LoadConfigurationState(Object) |
加载通过 SaveConfigurationState() 方法保存的配置状态。Loads the configuration state saved with the SaveConfigurationState() method. (继承自 WebPartTransformer) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| SaveConfigurationState() |
将用户设置的配置状态保存在 ASP.NET 配置控件中。Saves the configuration state set by the user in the ASP.NET configuration control. (继承自 WebPartTransformer) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| Transform(Object) |
提供用于转换数据的对象。Provides an object for transforming the data. |
显式接口实现
| IWebPartParameters.GetParametersData(ParametersCallback) |
获取连接提供者的数据的值。Gets the value of the data from the connection provider. |
| IWebPartParameters.Schema |
获取用于在两个 Web 部件控件之间共享数据的数据字段的架构信息。Gets the schema information for a data field that is used to share data between two Web Parts controls. |
| IWebPartParameters.SetConsumerSchema(PropertyDescriptorCollection) |
为使用者在调用 GetParametersData(ParametersCallback) 方法时接收的属性设置属性说明符。Sets the property descriptors for the properties that the consumer receives when the GetParametersData(ParametersCallback) method is called. |