SPQuery.Method Property

Gets or sets the outer XML for the method portion of a query of an external list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public string Method { get; set; }

Property Value

Type: System.String
The outer XML for the method of the query. (a null reference (Nothing in Visual Basic) for a non-external list.)

For external lists, returns the XML defining the method portion of the query. This includes the name of the finder to be executed, together with the finder filter name and value settings. If the Method property is empty, then the default finder will be executed with its default finder filter settings.