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

プロパティ値

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 ます。

適用対象