ShippingMethodManager.GetMethodInfo Method (PIA)

Use this method to retrieve information about the database attributes of one or more columns in the ShippingConfig table.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Function GetMethodInfo(ByRefcolumns As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public object GetMethodInfo(ref objectcolumns,
);

Parameters

[Visual Basic .NET]

  • columns
    A System.Array of strings containing names of the columns. Specify an empty array to return all columns.

[C#]

  • columns
    An object containing a System.Array of strings containing names of the columns. Specify an empty array to return all columns.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a Recordset object that contains the information about the wanted columns.

[C#] An object containing an ADO Recordset object that contains the information about the requested database columns.

Exceptions

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

Remarks

This method acts on the loaded shipping method. You must call LoadMethodInstance or CreateMethodInstance to load a shipping method into the ShippingMethodManager object before calling this method.

This method returns an ADO Recordset object containing the data type, defined size, and attributes of the requested columns in the ShippingConfig table.

[Visual Basic .NET]

Example

' oSMM is an initialized, loaded Commerce.ShippingMethodManager object
' rsResult is a recordset
Dim aColumnNames as System.Array
aColumnNames(0) = "shipping_method_name"
aColumnNames(1) = "description"
aColumnNames(2) = "enabled"
rsResult = oSMM.GetMethodInfo(aColumnNames)

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.