ShippingMethodManager.LoadMethodInstance Method (PIA)

Use this method to load an instance of a given shipping method.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub LoadMethodInstance(ByRefmethodid As Object)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public void LoadMethodInstance(ref objectmethod_id);

Parameters

[Visual Basic .NET]

  • methodid
    A String containing the method ID of the shipping method.

[C#]

  • method_id
    A reference to an object containing a string that is the method ID of the shipping method.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Return Values

[C#] This method returns an HRESULT indicating whether or not it completed successfully. See the Error Values section for more details.

Remarks

This method loads an instance of the requested shipping method as a single record in the current recordset.

[Visual Basic .NET]

Example

' oSMM is an initialized Commerce.ShippingMethodManager object
' sMethodId is a string containing the method id

oSMM.LoadMethodInstance(sMethodId)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_shipmgr (in cs_shipmgr.dll)

See Also

Splitter

Shipping Class

ShippingDiscountAdjust

ShippingManagerCache

ShippingMethodManager Class

ShippingMethodRouter

StepwiseShipping

Copyright © 2005 Microsoft Corporation.
All rights reserved.