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
viewXml
Type: System.StringThe view XML to set.
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.