다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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