다음을 통해 공유


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

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