Share via


ObjectDataProvider.MethodParameters 属性

定义

获取要传递给方法的参数列表。

public:
 property System::Collections::IList ^ MethodParameters { System::Collections::IList ^ get(); };
public System.Collections.IList MethodParameters { get; }
member this.MethodParameters : System.Collections.IList
Public ReadOnly Property MethodParameters As IList

属性值

要传递给方法的参数列表。 默认为空列表。

注解

可以使用 MethodName 属性在 对象上调用方法,并使用 MethodParameters 属性将参数传递给 方法。 然后,可以绑定到 方法的结果。

更改此集合会隐式导致 ObjectDataProvider 对象刷新。 更改多个导致刷新的属性时,建议使用 DeferRefresh

XAML 属性元素用法

<object>  
  <object.MethodParameters>  
    parameterValues  
  </object.MethodParameters>  
</object>  

适用于