Share via


GetRedirectedURL Method

Gets the redirected URL for the current item.

HRESULT GetRedirectedURL(
WCHAR wszRedirectedURL[],
DWORD dwSize,
DWORD *pdwLength
);

Parameters

wszRedirectedURL

[out] Contains the redirected URL as a null-terminated, Unicode string not including NULL.

dwSize

[in] DWORD representing the size of wszRedirectedURL.

pdwLength

[out] Pointer to the DWORD that contains the number of characters written to wszRedirectedURL string, not including NULL.

Return Value

If successful, returns S_OK, otherwise it returns an error value. For a list of error messages returned by Enterprise Search in Microsoft Office SharePoint Server 2007, see Protocol Handler Error Messages.

Remarks

This method applies only to HTTP content source types.

If you implement this method, the URL passed to the CreateAccessor Method method is redirected to the value returned by this method for the wszRedirectedURL parameter. All subsequent relative URL links are processed based on the redirected URL.

See Also

Concepts

Protocol Handler Reference
IUrlAccessor Interface