TransformerInfo(String, String) Constructor

Definition

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

public TransformerInfo (string name, string type);

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"));

Remarks

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also