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.StringA 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.