다음을 통해 공유


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

Syntax

'Declaration
Public Function Clone ( _
    strNewViewName As String, _
    iRowLimit As UInteger, _
    bPaged As Boolean, _
    bMakeViewDefault As Boolean _
) As SPView
'Usage
Dim instance As SPView
Dim strNewViewName As String
Dim iRowLimit As UInteger
Dim bPaged As Boolean
Dim bMakeViewDefault As Boolean
Dim returnValue As SPView

returnValue = instance.Clone(strNewViewName, _
    iRowLimit, bPaged, bMakeViewDefault)
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.

See Also

Reference

SPView Class

SPView Members

Microsoft.SharePoint Namespace