共用方式為


TagMapInfo.TagType 屬性

定義

取得或設定要重新對應之標記的原始型別的名稱。

public:
 property System::String ^ TagType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("tagType", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string TagType { get; set; }
[<System.Configuration.ConfigurationProperty("tagType", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.TagType : string with get, set
Public Property TagType As String

屬性值

要重新對應之標記的原始型別名稱。

屬性

範例

下列程式碼範例示範如何使用 TagType 屬性。 此程式碼範例是提供給 類別之較大範例的 PagesSection 一部分。

備註

標籤重新對應會在編譯時期發生。 此重新對應會導致屬性所指定的 MappedTagType 對應類型 () 用來取代屬性) 指定之原始標記類型 (TagType 組態檔範圍中 ASP.NET 所有頁面和控制項的屬性) 。

注意

這個屬性的空字串值會導致組態系統在序列化物件時擲回例外狀況。

適用於

另請參閱