다음을 통해 공유


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

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