Class PostalAddress

PostalAddress class

Represents a postal address.

public class PostalAddress : IComparable<PostalAddress>, IEquatable<PostalAddress>


PostalAddress()The default constructor.


Address { get; set; }Gets or sets an address
Category { get; set; }Gets or sets an object category
City { get; set; }Gets or sets a city
Country { get; set; }Gets or sets a country
CountryCode { get; set; }Gets or sets a country code
IsMailingAddress { get; set; }Gets or sets a value which defines whether address may be used for mailing.
PostalCode { get; set; }Gets or sets a post code
PostOfficeBox { get; set; }Gets or sets a post Office box
Prefered { get; set; }Gets or sets a value which defines whether postal address is preferred.
StateOrProvince { get; set; }Gets or sets a region
Street { get; set; }Gets or sets a street


virtual CompareTo(PostalAddress)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
override Equals(object)Determines whether the specified Object is equal to the current Object.
Equals(PostalAddress, PostalAddress)Determines whether the specified object instances are considered equal.
override GetHashCode()GetHashCode returns a hash function for this object.
virtual GetHashCode(PostalAddress)GetHashCode returns a hash function for specified object.
override ToString()Returns a string that represents the current object.
operator ==Determines whether the specified objects are equal.
operator !=Determines whether the specified objects are not equal.

See Also