Kentico 9.0 API Reference
Kentico 9.0 API Reference
Namespaces
CMS.Ecommerce
IAddressExtensions Class
IAddressExtensions Methods
GetCountryThreeLetterCode Method
GetCountryTwoLetterCode Method
GetStateCode Method
IAddressExtensions
.
GetStateCode Method
Returns state code for state specified by AddressStateID property.
Namespace:
CMS.Ecommerce
Assembly:
CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
Copy
public
static
string
GetStateCode
(
this
IAddress
address
)
Parameters
address
Type:
CMS.Ecommerce
.
IAddress
Object implementing IAddress interface.
Return Value
Type:
String
State code or empty string when state not found.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAddress
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
IAddressExtensions Class
CMS.Ecommerce Namespace
Copyright (c) 2015 Kentico Software
Send comments on this topic to
support@kentico.com