Condividi tramite


TransformerInfo(String, String) Costruttore

Definizione

Inizializza una nuova istanza della classe TransformerInfo con il nome e il riferimento al tipo specificati.

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)

Parametri

name
String

Nome di questo tipo di trasformazione.

type
String

Riferimento a un tipo che estende la classe di trasformazione WebPartTransformer.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il TransformerInfo(String, String) costruttore . Questo esempio di codice fa parte di un esempio più ampio fornito per la WebPartsSection classe .

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

Commenti

Il sistema di configurazione non convalida il tipo specificato per assicurarsi che venga usato un nome di tipo valido.

Si applica a

Vedi anche