SPCopyDestinationCollection Class

Represents a collection of SPCopyDestination objects.

Inheritance Hierarchy


Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online


<SubsetCallableTypeAttribute> _
Public NotInheritable Class SPCopyDestinationCollection _
    Inherits SPBaseCollection
Dim instance As SPCopyDestinationCollection
public sealed class SPCopyDestinationCollection : SPBaseCollection


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


SPCopyDestinationCollection Members

Microsoft.SharePoint Namespace