Udostępnij za pośrednictwem


ExpirationMonth Property

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

Gets or sets the month when credit card will expire.

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

Syntax

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

value = instance.ExpirationMonth

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

Property Value

Type: System..::.Int32
The expiration month of the credit card. Default is 1.

Exceptions

Exception Condition
ArgumentException

If the value is not between 1 and 12 (inclusive).

Remarks

Stores the expiration month of the credit card. The value is a 1, representing "January" through 12, representing "December".

Permissions

See Also

Reference

CreditCardPayment Class

CreditCardPayment Members

Microsoft.CommerceServer.Runtime.Orders Namespace