ModelDataSourceView.FindMethod Method (String)

.NET Framework (current version)

Finds the method to be executed.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract FindMethod : 
        methodName:string -> ModelDataSourceMethod
override FindMethod : 
        methodName:string -> ModelDataSourceMethod


Type: System.String

The name of the method to be executed.

Return Value

Type: System.Web.UI.WebControls.ModelDataSourceMethod

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

Exception Condition

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

.NET Framework
Available since 4.5
Return to top