Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Modifies the billing address for every order form in the order group instance.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub SetBillingAddress ( _
billingAddressId As String _
)
'Usage
Dim instance As OrderGroup
Dim billingAddressId As String
instance.SetBillingAddress(billingAddressId)
public void SetBillingAddress(
string billingAddressId
)
public:
void SetBillingAddress(
String^ billingAddressId
)
public function SetBillingAddress(
billingAddressId : String
)
Parameters
- billingAddressId
Type: System..::.String
The new billing address identifier.
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 BillingAddressId 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 BillingAddressId property. |
Remarks
Use this method to modify the billing address for every order form in the order group instance.
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.