Partager via


GetRedirectedURL Method

The GetRedirectedURL method of the IUrlAccessor interface returns a redirected URL for the current item.

Parameters

WszRedirectedURL[]   [out, length_is(*pdwLength), size_is(dwSize)] Pointer to a wszRedirectedURL that contains a string buffer where the redirect URL will be written.

dwSize    [in] Pointer to a DWORD that contains the size of the wszRedirectedURL string buffer.

pdwLength   [out] Pointer to a DWORD that contains the number of characters written to the wszRedirectedURL string buffer.

Return Value

This method should return PRTH_E_NOT_REDIRECTED if not implemented.

For a list of error messages returned by Microsoft Office SharePoint Portal Server 2003 protocol handlers, see Protocol Handler Error Messages.

Remarks

If the GetRedirectedUrl method is implemented, the URL that is passed to the CreateAccessor method is redirected to the value returned by this method. All subsequent relative URL links are processed based on the redirected URL.

Requirements

Platforms: Windows Server 2003