다음을 통해 공유


CountryCode Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the country/region associated with the address.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property CountryCode As String
'Usage
Dim instance As OrderAddress
Dim value As String

value = instance.CountryCode

instance.CountryCode = value
public string CountryCode { get; set; }
public:
property String^ CountryCode {
    String^ get ();
    void set (String^ value);
}
public function get CountryCode () : String
public function set CountryCode (value : String)

Property Value

Type: System..::.String
The country code associated with the address.

Exceptions

Exception Condition
ArgumentException

The length of the string being set is greater than the maximum length specified in the orders storage mapping file, OrderObjectMappings.xml.

Remarks

CountryCode is one of the codes defined in ISO 3166 for country/region. See http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html.

If the specified key is not set, then the value returned is nullNothingnullptra null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

OrderAddress Class

OrderAddress Members

Microsoft.CommerceServer.Runtime.Orders Namespace