共用方式為


SPCopyDestinationCollection.Add method

將會以指定的 URL、 目的型別和註解的複製目的地物件集合的複製目的地。

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

Syntax

'宣告
Public Function Add ( _
    url As String, _
    type As SPCopyDestinationType, _
    comment As String _
) As SPCopyDestination
'用途
Dim instance As SPCopyDestinationCollection
Dim url As String
Dim type As SPCopyDestinationType
Dim comment As String
Dim returnValue As SPCopyDestination

returnValue = instance.Add(url, type, comment)
public SPCopyDestination Add(
    string url,
    SPCopyDestinationType type,
    string comment
)

參數

  • url
    Type: System.String

    字串,指定複製目的地的 URL。

  • type
    Type: Microsoft.SharePoint.SPCopyDestinationType

    表示複製目的地相關聯的複製行為的SPCopyDestinationType值:"None"、"略過"「 無更新 」 或 「 更新 」。「 更新 」 在顯示與選取的更新選項的複製目的地的網頁上顯示更新提示。「 沒有更新 」 會顯示未核取 [更新] 選項的更新提示。「 忽略 」 並顯示更新提示。[無] 不會設定型別。

  • comment
    Type: System.String

    字串,指定複製目的地相關聯的註解。

傳回值

Type: Microsoft.SharePoint.SPCopyDestination

請參閱

參照

SPCopyDestinationCollection class

SPCopyDestinationCollection members

Microsoft.SharePoint namespace