Condividi tramite


PostalAddress Class

Definition

Defines a postal address.

public class PostalAddress : Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.StructuredValue
type PostalAddress = class
    inherit StructuredValue
Public Class PostalAddress
Inherits StructuredValue
Inheritance

Constructors

PostalAddress()

Initializes a new instance of the PostalAddress class.

PostalAddress(String, IList<ContractualRulesContractualRule>, String, String, String, ImageObject, String, EntitiesEntityPresentationInfo, String, String, String, String, String, String, String, String, String, String, String, String)

Initializes a new instance of the PostalAddress class.

Properties

AddressCountry

Gets the country/region where the street address is located. This could be the two-letter ISO code. For example, US, or the full name, United States.

AddressLocality

Gets the city where the street address is located. For example, Seattle.

AddressRegion

Gets the state or province code where the street address is located. This could be the two-letter code. For example, WA, or the full name , Washington.

AddressRegionAbbreviation

Gets region Abbreviation. For example, WA.

AddressSubregion
BingId

Gets an ID that uniquely identifies this item.

(Inherited from Thing)
ContractualRules

Gets a list of rules that you must adhere to if you display the item.

(Inherited from Response)
CountryIso

Gets the two letter ISO code of this countr. For example, US.

Description

Gets a short description of the item.

(Inherited from Thing)
EntityPresentationInfo

Gets additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.

(Inherited from Thing)
Id

Gets a String identifier.

(Inherited from Identifiable)
Image (Inherited from Thing)
Name

Gets the name of the thing represented by this object.

(Inherited from Thing)
Neighborhood

Gets the neighborhood where the street address is located. For example, Westlake.

PostalCode

Gets the zip code or postal code where the street address is located. For example, 98052.

PostOfficeBoxNumber
StreetAddress
Text

Gets the complete address. For example, 2100 Westlake Ave N, Bellevue, WA 98052.

Url

Gets the URL to get more information about the thing represented by this object.

(Inherited from Thing)
WebSearchUrl

Gets the URL To Bing's search result for this item.

(Inherited from Response)

Methods

Validate()

Validate the object.

Applies to