SPMigratableSiteCollection.Contains method

NOTE: This API is now obsolete.

Determines whether the collection contains a specified site collection.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")> _
Public Function Contains ( _
    item As SPSite _
) As Boolean
'Usage
Dim instance As SPMigratableSiteCollection
Dim item As SPSite
Dim returnValue As Boolean

returnValue = instance.Contains(item)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")]
public bool Contains(
    SPSite item
)

Parameters

Return value

Type: System.Boolean
true if the collection contains the specified site collection; otherwise, false.

Implements

ICollection<T>.Contains(T)

See also

Reference

SPMigratableSiteCollection class

SPMigratableSiteCollection members

Microsoft.SharePoint.Administration namespace