CanNavigate method

Determines whether navigation is possible.

Syntax

HRESULT retVal = object.CanNavigate(pwzUri, pwzMethod, pwzHeaders, pPostData, pfCanNavigate);

Parameters

pwzUri [in]

Type: LPCWSTR

The URI for the request.

pwzMethod [in]

Type: LPCWSTR

One of the following values, or NULL.

GET

Default. An HTTP GET request.

POST

A HTML POST request.

pwzHeaders [in]

Type: LPCWSTR

Custom headers for the request. May be NULL.

pPostData [in]

Type: IStream

An IStream interface that provides a stream of bytes for a POST request. May be NULL.

pfCanNavigate [out]

Type: BOOL

TRUE if navigation is allowed; otherwise, FALSE.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See also

IOpenServiceActivityOutputContext::Navigate