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)

Syntax

'Declaration
Public Property Method As String
    Get
    Set
'Usage
Dim instance As SPQuery
Dim value As String

value = instance.Method

instance.Method = value
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.)

Remarks

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.

See also

Reference

SPQuery class

SPQuery members

Microsoft.SharePoint namespace