Поделиться через


SPCopyDestinationCollection Class

Represents a collection of SPCopyDestination objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPCopyDestinationCollection

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPCopyDestinationCollection _
    Inherits SPBaseCollection

Dim instance As SPCopyDestinationCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPCopyDestinationCollection : SPBaseCollection

Remarks

Use the CopyDestinations property of the SPListItem class to return the collection of destination URLs for the list item. To create a copy destination, use the Add method.

Use an indexer to return the URL of a single copy destination from the collection. For example, if the collection is assigned to a variable named myCopyDestinations, use myCopyDestinations[index] in C#, or myCopyDestinations(index) in Microsoft Visual Basic, where index is the index number of the copy destination in the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPCopyDestinationCollection Members

Microsoft.SharePoint Namespace