Share via


SPPrefixCollection.Contains method

Returns a Boolean value that indicates whether the collection contains the specified prefix.

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

Syntax

'Declaration
Public Function Contains ( _
    strPrefix As String _
) As Boolean
'Usage
Dim instance As SPPrefixCollection
Dim strPrefix As String
Dim returnValue As Boolean

returnValue = instance.Contains(strPrefix)
public bool Contains(
    string strPrefix
)

Parameters

  • strPrefix
    Type: System.String

    A string that contains the prefix. This is a server-relative URL path.

Return value

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

See also

Reference

SPPrefixCollection class

SPPrefixCollection members

Microsoft.SharePoint.Administration namespace