Share via


TransformerInfo(String, String) Konstruktor

Definice

Inicializuje novou instanci TransformerInfo třídy se zadaným názvem a odkazem na typ.

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)

Parametry

name
String

Název tohoto typu transformátoru.

type
String

Odkaz na typ, který rozšiřuje třídu transformátoru WebPartTransformer .

Příklady

Následující příklad kódu ukazuje, jak použít TransformerInfo(String, String) konstruktor. Tento příklad kódu je součástí většího příkladu WebPartsSection pro třídu.

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

Poznámky

Konfigurační systém neověřuje zadaný typ, aby se zajistilo použití platného názvu typu.

Platí pro

Viz také