This topic has not yet been rated - Rate this topic

ICivicAddressReport::GetAddressLine1 method

Retrieves the first line of a street address.

Syntax


HRESULT GetAddressLine1(
  [out]  BSTR *pbstrAddress1
);

Parameters

pbstrAddress1 [out]

Address of a BSTR that receives the first line of a street address.

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 GetAddressLine1.


    HRESULT hr = pCivicAddressReport->GetAddressLine1(&bstrAddress1);
    if (SUCCEEDED(hr) && (bstrAddress1.Length() != 0))
    { 
        wprintf(L"\tAddress Line 1:\t%s\n", bstrAddress1);
    }


Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported [desktop apps only]

Client

Windows 7

Header

LocationApi.h

DLL

LocationAPI.dll

See also

ICivicAddressReport

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.