संपादित करें

इसके माध्यम से साझा किया गया


TransformerInfo(String, String) Constructor

Definition

Initializes a new instance of the TransformerInfo class with the specified name and type reference.

public:
 TransformerInfo(System::String ^ name, System::String ^ type);
public TransformerInfo (string name, string type);
new System.Web.Configuration.TransformerInfo : string * string -> System.Web.Configuration.TransformerInfo
Public Sub New (name As String, type As String)

Parameters

name
String

The name of this transformer type.

type
String

A reference to a type that extends the transformer WebPartTransformer class.

Examples

The following code example shows how to use the TransformerInfo(String, String) constructor. This code example is part of a larger example provided for the WebPartsSection class.

// Add a Transfomer Info Object to the collection using a constructor.
webPartsSection.Transformers.Add(new TransformerInfo(
    "RowToFilterTransformer",
    "MyCustomTransformers.RowToFilterTransformer"));
' Add a Transfomer Info Object to the collection using a constructor.
webPartsSection.Transformers.Add(New TransformerInfo( _
  "RowToFilterTransformer", _
  "MyCustomTransformers.RowToFilterTransformer"))

Remarks

The configuration system does not validate the specified type to ensure that a valid type name is used.

Applies to

See also