Share via


View constructor

Initializes a new instance of the SPView class.

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

Syntax

'Declaration
Public Sub New ( _
    context As ClientRuntimeContext, _
    objectPath As ObjectPath _
)
'Usage
Dim context As ClientRuntimeContext
Dim objectPath As ObjectPath

Dim instance As New View(context, _
    objectPath)
public View(
    ClientRuntimeContext context,
    ObjectPath objectPath
)

Parameters

Remarks

Use the Clone method on the constructed view object to add the view to collection of views for the list.

See also

Reference

View class

View members

Microsoft.SharePoint.Client namespace