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>

适用于