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

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