共用方式為


HtmlAttributeNameAttribute.DictionaryAttributePrefix 屬性

定義

取得或設定用來比對 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 相關聯的屬性必須與 ,其中 TKeyString 相容 IDictionary<TKey,TValue>

適用於