ValidationAttributeAdapter<TAttribute>.MergeAttribute メソッド

定義

に の値が含まれていない場合、指定された keyvalue を にattributes追加しますkeyattributes

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は 。

適用対象