Share via


SPPrefixCollection.Lookup method

Retrieves a copy of the specified SPPrefix object from this collection, if one exists.

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

Syntax

'Declaration
Public Function Lookup ( _
    strPrefix As String _
) As SPPrefix
'Usage
Dim instance As SPPrefixCollection
Dim strPrefix As String
Dim returnValue As SPPrefix

returnValue = instance.Lookup(strPrefix)
public SPPrefix Lookup(
    string strPrefix
)

Parameters

  • strPrefix
    Type: System.String

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

Return value

Type: Microsoft.SharePoint.Administration.SPPrefix
The SPPrefix object, if it exists in the collection. Otherwise, this value is null.

See also

Reference

SPPrefixCollection class

SPPrefixCollection members

Microsoft.SharePoint.Administration namespace