This documentation is archived and is not being maintained.
MethodExpression::MethodName Property
Visual Studio 2010
Gets or sets the name of the method that contains a custom LINQ query.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The MethodExpression object enables you to call a custom LINQ query that is defined in a method. You specify the method in the QueryExtender control in the page.
The following example shows how to specify the FilterStandardPrice method in the QueryExtender control. The custom LINQ query is defined in a FilterStandardPrice method.
<asp:QueryExtender ID="QueryExtender1" runat="server"
TargetControlID="LinqDataSource1">
<asp:MethodExpression MethodName="FilterStandardPrice">
</asp:MethodExpression>
</asp:QueryExtender>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: