ModelDataSourceView::FindMethod Method (String^)
.NET Framework (current version)
Finds the method to be executed.
Assembly: System.Web (in System.Web.dll)
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
Available since 4.5
Show: