SPMobileUtility.GenerateExternalUri method

Generates an external (outside the firewall) URI for the page in the specified internal URI.

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

Syntax

'Declaration
Public Shared Function GenerateExternalUri ( _
    uri As Uri _
) As String
'Usage
Dim uri As Uri
Dim returnValue As String

returnValue = SPMobileUtility.GenerateExternalUri(uri)
public static string GenerateExternalUri(
    Uri uri
)

Parameters

  • uri
    Type: System.Uri

    The internal URI, either absolute or server-relative.

Return value

Type: System.String
The external URI.

Remarks

If the external URL zone is not defined, and empty string is returned.

The URI is one that can be used to access the page from the cross firewall zone as set in the Central Administration application.

See also

Reference

SPMobileUtility class

SPMobileUtility members

Microsoft.SharePoint.Utilities namespace