ExpirationYear Property

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

Gets or sets the 4 digit expiration year when credit card will expire.

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

Syntax

'Declaration
Public Property ExpirationYear As Integer
'Usage
Dim instance As CreditCardPayment
Dim value As Integer

value = instance.ExpirationYear

instance.ExpirationYear = value
public int ExpirationYear { get; set; }
public:
property int ExpirationYear {
    int get ();
    void set (int value);
}
public function get ExpirationYear () : int
public function set ExpirationYear (value : int)

Property Value

Type: System..::.Int32
The expiration year, formatted as a 4 digit integer, of the credit card. Default is 2005

Exceptions

Exception Condition
ArgumentException

If the value is not a 4 digit value.

Remarks

Stores the expiration year, formatted as a 4 digit integer, of the credit card.

Permissions

See Also

Reference

CreditCardPayment Class

CreditCardPayment Members

Microsoft.CommerceServer.Runtime.Orders Namespace