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
- type
Type: Microsoft.CommerceServer.Orders..::.PaymentMethodTypes
The payment type.
- defaultLanguage
Type: System..::.String
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.