ValidationAttributeAdapter<TAttribute>.MergeAttribute メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
に の値が含まれていない場合、指定された key
と value
を にattributes
追加しますkey
。attributes
protected:
static bool MergeAttribute(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ attributes, System::String ^ key, System::String ^ value);
protected static bool MergeAttribute (System.Collections.Generic.IDictionary<string,string> attributes, string key, string value);
static member MergeAttribute : System.Collections.Generic.IDictionary<string, string> * string * string -> bool
Protected Shared Function MergeAttribute (attributes As IDictionary(Of String, String), key As String, value As String) As Boolean
パラメーター
- attributes
- IDictionary<String,String>
HTML 属性ディクショナリ。
- key
- String
属性キー。
- value
- String
属性値。
戻り値
true
属性が追加された場合は 。それ以外の場合 false
は 。