HtmlAttributeNameAttribute.DictionaryAttributePrefix 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用來比對 HTML 屬性名稱的前置詞。 比對屬性會新增至相關聯的屬性, (IDictionary<TKey,TValue>) 。
public:
property System::String ^ DictionaryAttributePrefix { System::String ^ get(); void set(System::String ^ value); };
public string DictionaryAttributePrefix { get; set; }
member this.DictionaryAttributePrefix : string with get, set
Public Property DictionaryAttributePrefix As String
屬性值
如果相關聯的屬性與 IDictionary<TKey,TValue> 相容,預設值為 Name + "-"
。
Name 在此情況下不得為 null
或空白。
否則,預設值為 null
。
備註
如果非 null
相關聯的屬性必須與 ,其中 TKey
是 String 相容 IDictionary<TKey,TValue> 。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應