Export (0) Print
Expand All

SPView.SetViewXml Method

Sets the schema of the view schema.

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

public void SetViewXml(
	string viewXml
)

Parameters

viewXml
Type: System.String

The view XML to set.

ExceptionCondition
XmlException

The viewXml parameter is not XML-compliant.

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

Show:
© 2015 Microsoft