다음을 통해 공유


PaymentMethod Constructor (PaymentMethodTypes, String, String, String)

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

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, _
    description As String _
)
'Usage
Dim type As PaymentMethodTypes
Dim defaultLanguage As String
Dim name As String
Dim description As String

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

Parameters

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

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 properties Name and Description.

Permissions

See Also

Reference

PaymentMethod Class

PaymentMethod Members

PaymentMethod Overload

Microsoft.CommerceServer.Orders Namespace