SetShippingAddress Method
Modifies the specified shipping address for every order form in the current order group.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub SetShippingAddress ( _
shippingAddressId As String _
)
'Usage
Dim instance As OrderGroup
Dim shippingAddressId As String
instance.SetShippingAddress(shippingAddressId)
public void SetShippingAddress(
string shippingAddressId
)
public:
void SetShippingAddress(
String^ shippingAddressId
)
public function SetShippingAddress(
shippingAddressId : String
)
Parameters
- shippingAddressId
Type: System..::.String
The new shipping address identifier to ship the orders to.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The value being set is nullNothingnullptra null reference (Nothing in Visual Basic). Use a non nullNothingnullptra null reference (Nothing in Visual Basic) value for ShippingAddressId to prevent this exception. |
InvalidOperationException | The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder. |
ArgumentException | The length of the string being set is greater than the maximum specified in the Orders storage mapping file for the ShippingAddressId property. |
Remarks
Use this method to set the specified shipping address for every order form in the current order group.
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.