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
- oldBaseUri
Type: System.Uri
- newBaseUri
Type: System.Uri
- originalUri
Type: System.Uri
Return value
Type: System.Uri