Compartir a través de


View.Method Property

Gets or sets a value that specifies the view method for the list view.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property Method As String
    Get
    Set
'Usage
Dim instance As View
Dim value As String

value = instance.Method

instance.Method = value
[RemoteAttribute]
public string Method { get; set; }

Property Value

Type: System.String
Returns a String instance representing the view method for the list view.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

Method or Filter element has an empty Name attribute. Error code: -2146232832.

Remarks

It must be a null reference (Nothing in Visual Basic) or an XML Document where the root element is a valid Method XML Fragment.

See Also

Reference

View Class

View Members

Microsoft.SharePoint.Client Namespace