TagMapInfo.TagType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定要重新對應之標記的原始型別的名稱。
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 所有頁面和控制項的屬性) 。
注意
這個屬性的空字串值會導致組態系統在序列化物件時擲回例外狀況。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應