Share via


SPAlternateUrlCollection.Contains method

Returns a value that indicates whether the specified URL is included in the collection.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function Contains ( _
    url As SPAlternateUrl _
) As Boolean
'Usage
Dim instance As SPAlternateUrlCollection
Dim url As SPAlternateUrl
Dim returnValue As Boolean

returnValue = instance.Contains(url)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public bool Contains(
    SPAlternateUrl url
)

Parameters

Return value

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

Implements

ICollection<T>.Contains(T)

See also

Reference

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace