SPView.Clone 方法

创建并返回视图的一个副本。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function Clone ( _
    strNewViewName As String, _
    iRowLimit As UInteger, _
    bPaged As Boolean, _
    bMakeViewDefault As Boolean _
) As SPView
用法
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
)

参数

  • strNewViewName
    类型:System.String

    一个字符串,包含该视图的名称。

  • iRowLimit
    类型:System.UInt32

    无符号的 32 位整数,它指定在视图中返回的最大项数。

  • bPaged
    类型:System.Boolean

    true 如果视图支持显示多个项按页 ;否则为 false。

  • bMakeViewDefault
    类型:System.Boolean

    true 如果重复视图是默认视图。否则为 false。

返回值

类型:Microsoft.SharePoint.SPView
表示重复的视图的SPView对象。

另请参阅

引用

SPView 类

SPView 成员

Microsoft.SharePoint 命名空间