MethodExpression.MethodName 속성

정의

사용자 지정 LINQ 쿼리를 포함하는 메서드의 이름을 가져오거나 설정합니다.

public:
 property System::String ^ MethodName { System::String ^ get(); void set(System::String ^ value); };
public string MethodName { get; set; }
member this.MethodName : string with get, set
Public Property MethodName As String

속성 값

사용자 지정 LINQ 쿼리를 포함하는 메서드의 이름입니다.

예제

다음 예제에서는 컨트롤에서 메서드를 FilterStandardPrice 지정 하는 방법을 보여 있습니다 QueryExtender . 사용자 지정 LINQ 쿼리는 메서드에 FilterStandardPrice 정의됩니다.

<asp:QueryExtender ID="QueryExtender1" runat="server"
    TargetControlID="LinqDataSource1">
  <asp:MethodExpression MethodName="FilterStandardPrice">
  </asp:MethodExpression>
  </asp:QueryExtender>

설명

MethodExpression 개체를 사용하면 메서드에 정의된 사용자 지정 LINQ 쿼리를 호출할 수 있습니다. 페이지의 컨트롤에서 메서드를 QueryExtender 지정합니다.

적용 대상