ModelDataSourceView.FindMethod Method (String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Finds the method to be executed.

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

Protected Overridable Function FindMethod (
	methodName As String
) As ModelDataSourceMethod

Parameters

methodName
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
InvalidOperationException

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
Show: