Export (0) Print
Expand All

ICivicAddressReport::GetStateProvince method

Retrieves the state or province name.

Syntax


HRESULT GetStateProvince(
  [out]  BSTR *pbstrStateProvince
);

Parameters

pbstrStateProvince [out]

Address of a BSTR that receives the state or province name.

Return value

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

Examples

The following example demonstrates how to call GetStateProvince.


    hr = pCivicAddressReport->GetStateProvince(&bstrStateProvince);
    if (SUCCEEDED(hr) && (bstrStateProvince.Length() != 0))
    {
        wprintf(L"\tState/Province:\t%s\n", bstrStateProvince);
    }


Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

Client

Windows 7

Header

LocationApi.h

DLL

LocationAPI.dll

See also

ICivicAddressReport

 

 

Community Additions

ADD
Show:
© 2014 Microsoft