다음을 통해 공유


ShippingMethod Constructor (String, String, String, String, Int32)

Initializes a new instance of the ShippingMethod class with language insensitive properties like ShippingCostCalculator, ConfiguredMode, a default language and the corresponding language sensitive name and 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, _
    shippingCostCalculator As String, _
    configuredMode As Integer _
)
'Usage
Dim defaultLanguage As String
Dim name As String
Dim description As String
Dim shippingCostCalculator As String
Dim configuredMode As Integer

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

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.
  • shippingCostCalculator
    Type: System..::.String
    The name of the component used to calculate shipping costs.
  • configuredMode
    Type: System..::.Int32
    Represents the configured mode for the / PaymentProcessor.

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