Compartilhar via


SPSite.LookupUriInRemoteFarm Method

Returns the Uniform Resource Identifier (URI) of a Web site in the specified remote server farm.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Shared Function LookupUriInRemoteFarm ( _
    farm As SPFarm, _
    id As Guid, _
    zone As SPUrlZone _
) As Uri
'Usage
Dim farm As SPFarm
Dim id As Guid
Dim zone As SPUrlZone
Dim returnValue As Uri

returnValue = SPSite.LookupUriInRemoteFarm(farm, _
    id, zone)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public static Uri LookupUriInRemoteFarm(
    SPFarm farm,
    Guid id,
    SPUrlZone zone
)

Parameters

  • id
    Type: System.Guid

    A GUID that identifies the Web site.

Return Value

Type: System.Uri
A System.Uri object that represents the URI of the Web site.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace