SPView.SetViewXml method

Sets the schema of the view schema.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub SetViewXml ( _
    viewXml As String _
)
'Usage
Dim instance As SPView
Dim viewXml As String

instance.SetViewXml(viewXml)
public void SetViewXml(
    string viewXml
)

Parameters

Exceptions

Exception Condition
XmlException

The viewXml parameter is not XML-compliant.

Remarks

If the viewXml parameter is not XML-compliant, an exception is thrown and the settings do not take effect.

See also

Reference

SPView class

SPView members

Microsoft.SharePoint namespace