Partager via


ShippingMethod Constructor (String, String, String)

Initializes a new instance of the ShippingMethod class with a default language identifier, language name, and language description.

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

Syntax

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

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

Parameters

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

String inputs are trimmed of all white space characters.

Permissions

See Also

Reference

ShippingMethod Class

ShippingMethod Members

ShippingMethod Overload

Microsoft.CommerceServer.Orders Namespace