This documentation is archived and is not being maintained.

MethodExpression::MethodName Property

Gets or sets the name of the method that contains a custom LINQ query.

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

public:
property String^ MethodName {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: System::String
The name of the method that contains the custom LINQ query.

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>

.NET Framework

Supported in: 4

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: