ShippingMethod Constructor (String, String)
Initializes a new instance of the ShippingMethod class with a default language identifier and language name.
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 _
)
'Usage
Dim defaultLanguage As String
Dim name As String
Dim instance As New ShippingMethod(defaultLanguage, _
name)
public ShippingMethod(
string defaultLanguage,
string name
)
public:
ShippingMethod(
String^ defaultLanguage,
String^ name
)
public function ShippingMethod(
defaultLanguage : String,
name : 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).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The defaultLanguage or name is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
String inputs are trimmed of all whitespace characters.
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.