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
url
Type: Microsoft.SharePoint.Administration.SPAlternateUrlAn SPAlternateUrl object that represents the URL.
Return value
Type: System.Boolean
true if the collection contains the specified URL; otherwise, false.
Implements
See also
Reference
SPAlternateUrlCollection class