Share via


Address.SecondaryCity Property

Address.SecondaryCity Property

The name of the secondary city of an address in the United Kingdom.


Public SecondaryCity As System.String
    

[C#]

public System.String SecondaryCity;
    

Remarks

  • The bold portion of the following address is the SecondaryCity property:

    "Loughborough Road, West Bridgford, Nottingham, NG2 7, United Kingdom"

  • Maximum string size is 49 characters.

  • Example types for this element include city districts, city wards, and postal towns.

Example

[Visual Basic]

'Set up the Address object and the specification object
Dim myAddress As New Address()
myAddress.AddressLine = "1 Microsoft Way"
myAddress.PrimaryCity = "Redmond"
myAddress.Subdivision = "WA"
myAddress.PostalCode = "98052"
myAddress.CountryRegion = "US"

Dim findAddressSpec As New FindAddressSpecification()
findAddressSpec.InputAddress = myAddress
findAddressSpec.DataSourceName = "MapPoint.NA"

'Declare the return variable and find the address
Dim foundAddressResults As FindResults
foundAddressResults = findService.FindAddress(findAddressSpec)
If (foundAddressResults.NumberFound = 1) Then
 Console.WriteLine(foundAddressResults.Results(0).FoundLocation.Entity.DisplayName)
Else
 Console.WriteLine("Zero or multiple results found")
End If




[C#]

//Set up the Address object and the specification object
Address myAddress =  new Address();
myAddress.AddressLine = "1 Microsoft Way";
myAddress.PrimaryCity = "Redmond";
myAddress.Subdivision = "WA";
myAddress.PostalCode = "98052";
myAddress.CountryRegion = "US";

FindAddressSpecification findAddressSpec = new FindAddressSpecification();
findAddressSpec.InputAddress = myAddress;
findAddressSpec.DataSourceName = "MapPoint.NA";

//Declare the return variable and find the address
FindResults foundAddressResults;
foundAddressResults = findService.FindAddress(findAddressSpec);
if (foundAddressResults.NumberFound == 1) 
{
 Console.WriteLine(foundAddressResults.Results[0].FoundLocation.Entity.DisplayName);
}
else
{
 Console.WriteLine("Zero or multiple results found");
}


See Also

  Address Class   |   Address.PrimaryCity Property