Remove Method (String)
Removes the OrderAddress from the current order address collection, based upon the specified name.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
orderAddressName As String _
)
'Usage
Dim instance As OrderAddressCollection
Dim orderAddressName As String
instance.Remove(orderAddressName)
public void Remove(
string orderAddressName
)
public:
void Remove(
String^ orderAddressName
)
public function Remove(
orderAddressName : String
)
Parameters
- orderAddressName
Type: System..::.String
The name of OrderAddress to be removed.
Remarks
Removes a specified OrderAddress from the collection. When a OrderAddress is removed from the collection, all subsequent OrderAddress objects move up one index in the collection and the collection count is decremented.
If there are no line items in the collection, the function returns with no exception.
Calling Remove updates LastModified.
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.