SPAlternateUrl.Lookup Method (Microsoft.SharePoint.Administration)

Switch View :
ScriptFree
SPAlternateUrl.Lookup Method

Returns the SPAlternateUrl object in the farm whose incoming URL matches the specified URI parameter.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax

Visual Basic (Declaration)
Public Shared Function Lookup ( _
	uri As Uri _
) As SPAlternateUrl
Visual Basic (Usage)
Dim uri As Uri
Dim returnValue As SPAlternateUrl

returnValue = SPAlternateUrl.Lookup(uri)
C#
public static SPAlternateUrl Lookup(
	Uri uri
)

Parameters

uri
Type: System.Uri
A System.Uri object that represents the incoming URL of the SPAlternateUrl object to return.

Return Value

Type: Microsoft.SharePoint.Administration.SPAlternateUrl
An SPAlternateUrl object representing the alternate URL.
See Also

Reference