共用方式為


SPView.Clone method

建立並傳回檢視的複本。

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

Syntax

'宣告
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
    Type: System.String

    字串,包含檢視名稱。

  • iRowLimit
    Type: System.UInt32

    不帶正負號的 32 位元整數,指定要在檢視中傳回的項目最大數目。

  • bPaged
    Type: System.Boolean

    true 如果檢視支援顯示更多的項目頁面 ;否則, false。

  • bMakeViewDefault
    Type: System.Boolean

    true 如果重複檢視是預設的檢視。否則, false。

傳回值

Type: Microsoft.SharePoint.SPView
SPView 物件,表示重複的檢視。

請參閱

參照

SPView class

SPView members

Microsoft.SharePoint namespace