Share via


ParameterAttribute.CaptureUnmatchedValues 屬性

定義

取得或設定值,判斷參數是否會擷取不符合任何其他參數的值。

public:
 property bool CaptureUnmatchedValues { bool get(); void set(bool value); };
public bool CaptureUnmatchedValues { get; set; }
member this.CaptureUnmatchedValues : bool with get, set
Public Property CaptureUnmatchedValues As Boolean

屬性值

備註

CaptureUnmatchedValues 允許元件接受任意的其他屬性,並將其傳遞至另一個元件,或基礎標記的某些元素。

CaptureUnmatchedValues 每個元件最多可以使用一個參數。

CaptureUnmatchedValues 應該只套用至可以搭配 AddMultipleAttributes(Int32, IEnumerable<KeyValuePair<String,Object>>) 使用的型別參數,例如 Dictionary<TKey,TValue>

適用於