Share via


UserInfo.PostalCode Property

Gets the user's postal code (ZIP Code), if available.

Syntax

public string PostalCode {get;}

Property Value

System.String The user's postal code. If the user has not provided a postal code, the property value is null. If the user's privacy settings block access to the postal code, attempting to read this property causes an exception.

This property is read-only.

Remarks

This property enables applications to be customized according to the user's location. For example, a news provider could use the postal code to determine what local news, sports, and weather information to provide.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also