Export (0) Print
Expand All

SPView.Clone Method

Creates and returns a duplicate of the view.

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

public SPView Clone(
	string strNewViewName,
	uint iRowLimit,
	bool bPaged,
	bool bMakeViewDefault
)

Parameters

strNewViewName
Type: System.String

A string that contains the view name.

iRowLimit
Type: System.UInt32

An unsigned 32-bit integer that specifies the maximum number of items to return in the view.

bPaged
Type: System.Boolean

true if the view supports displaying more items page by page; otherwise, false.

bMakeViewDefault
Type: System.Boolean

true if the duplicate view is the default view; otherwise, false.

Return Value

Type: Microsoft.SharePoint.SPView
An SPView object that represents the duplicate view.
Show:
© 2015 Microsoft