TagMapInfo(String, String) Konstruktor

Definition

Initialisiert eine neue Instanz der TagMapInfo Klasse basierend auf den übergebenen Eigenschaftswerten.

public:
 TagMapInfo(System::String ^ tagTypeName, System::String ^ mappedTagTypeName);
public TagMapInfo(string tagTypeName, string mappedTagTypeName);
new System.Web.Configuration.TagMapInfo : string * string -> System.Web.Configuration.TagMapInfo
Public Sub New (tagTypeName As String, mappedTagTypeName As String)

Parameter

tagTypeName
String

Der vollqualifizierte Name des Typs für das Tag, das neu zugeordnet wird.

mappedTagTypeName
String

Der Name des Typs, dem das Tag neu zugeordnet wird, zusammen mit den unterstützenden Details.

Beispiele

Das folgende Codebeispiel zeigt, wie der TagMapInfo Konstruktor verwendet wird. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die PagesSection Klasse bereitgestellt wird.

// Add a TagMapInfo object using a constructor.
pagesSection.TagMapping.Add(
    new System.Web.Configuration.TagMapInfo(
    "MyNameSpace.MyControl", "MyNameSpace.MyOtherControl"));
' Add a TagMapInfo object using a constructor.
pagesSection.TagMapping.Add( _
 New System.Web.Configuration.TagMapInfo( _
 "MyNameSpace.MyControl", "MyNameSpace.MyOtherControl"))

Gilt für:

Weitere Informationen