次の方法で共有


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

'Declaration
Public NotInheritable Class SPCopyDestinationCollection _
    Inherits SPBaseCollection
'Usage
Dim instance As SPCopyDestinationCollection
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