다음을 통해 공유


PaymentMethod Constructor (PaymentMethodTypes, String, String)

Initializes a new instance of the PaymentMethod class with the payment type, default language, and the property name.

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

Syntax

'Declaration
Public Sub New ( _
    type As PaymentMethodTypes, _
    defaultLanguage As String, _
    name As String _
)
'Usage
Dim type As PaymentMethodTypes
Dim defaultLanguage As String
Dim name As String

Dim instance As New PaymentMethod(type, defaultLanguage, _
    name)
public PaymentMethod(
    PaymentMethodTypes type,
    string defaultLanguage,
    string name
)
public:
PaymentMethod(
    PaymentMethodTypes type, 
    String^ defaultLanguage, 
    String^ name
)
public function PaymentMethod(
    type : PaymentMethodTypes, 
    defaultLanguage : String, 
    name : String
)

Parameters

  • name
    Type: System..::.String
    The name of the PaymentMethod in the DefaultLanguage. May not be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

defaultLanguage or name is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

All string inputs will be trimmed.

The constructor takes a PaymentMethodTypes enumeration, the default language and the corresponding language sensitive property Name.

Permissions

See Also

Reference

PaymentMethod Class

PaymentMethod Members

PaymentMethod Overload

Microsoft.CommerceServer.Orders Namespace