Partilhar via


RefreshShippingMethods Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Refreshes the shipping method collection.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub RefreshShippingMethods
'Usage
Dim instance As ShippingMethodManager

instance.RefreshShippingMethods()
public void RefreshShippingMethods()
public:
void RefreshShippingMethods()
public function RefreshShippingMethods()

Exceptions

Exception Condition
TimeoutException

Thrown if sql command timeout occurs

Remarks

Method can be used to refresh the shipping method collection. This method synchronizes the collection with the database.

In order to perform a RefreshShippingMethods, the user must have the OrdersViewer permissions. See Orders System Roles [CS06] for more information about the specific roles in the Order System.

Some order system APIs support distributed transactions. If a cookie with a valid transaction is found the order system enlists as part of that transaction. If a valid transaction is not found the order system initiates a new transaction.

Permissions

See Also

Reference

ShippingMethodManager Class

ShippingMethodManager Members

Microsoft.CommerceServer.Orders Namespace