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

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