次の方法で共有


SPUtility.RebaseUri method

Takes an old Url base, a new Url base and replaces old with new in the original URL.

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

Syntax

'Declaration
Public Shared Function RebaseUri ( _
    oldBaseUri As Uri, _
    newBaseUri As Uri, _
    originalUri As Uri _
) As Uri
'Usage
Dim oldBaseUri As Uri
Dim newBaseUri As Uri
Dim originalUri As Uri
Dim returnValue As Uri

returnValue = SPUtility.RebaseUri(oldBaseUri, _
    newBaseUri, originalUri)
public static Uri RebaseUri(
    Uri oldBaseUri,
    Uri newBaseUri,
    Uri originalUri
)

Parameters

Return value

Type: System.Uri

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace