Modifica

Condividi tramite


ModelDataSourceView.FindMethod(String) Method

Definition

Finds the method to be executed.

protected:
 virtual System::Web::UI::WebControls::ModelDataSourceMethod ^ FindMethod(System::String ^ methodName);
protected virtual System.Web.UI.WebControls.ModelDataSourceMethod FindMethod (string methodName);
abstract member FindMethod : string -> System.Web.UI.WebControls.ModelDataSourceMethod
override this.FindMethod : string -> System.Web.UI.WebControls.ModelDataSourceMethod
Protected Overridable Function FindMethod (methodName As String) As ModelDataSourceMethod

Parameters

methodName
String

The name of the method to be executed.

Returns

A ModelDataSourceMethod object with the Instance and MethodInfo properties set. The Parameters collection of the ModelDataSourceMethod object is still empty when this method returns.

Exceptions

The DataMethodsObject property and the DataMethodsType property both have values, or the specified method was not found.

Applies to