GlobalConfig.MakeSimpleListFromArray Method (PIA)

Use this method to convert a System.Array object into a SimpleList object.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Function MakeSimpleListFromArray(ByRefvarArray As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
…
public object MakeSimpleListFromArray(ref objectvarArray);

Parameters

[Visual Basic .NET]

  • varArray
    An Object that contains the System.Array object to convert.

[C#]

  • varArray
    An object that contains the System.Array object to convert.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an object reference to the converted SimpleList object.

[C#] This method returns the converted SimpleList object.

Exceptions

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

Remarks

Ee810422.important(en-US,CS.20).gif****Important

  • There is a special group of methods used with multi-valued arrays. These methods are the only approved and recommended way of storing and retrieving multi-valued arrays in the Administration database. You must use the following methods with any property that has the structure of a multi-valued array:
    • MakeArrayFromSimpleList
    • MakeSimpleListFromArray
    • MakeArrayFromString
    • MakeStringFromArray

[Visual Basic .NET]

Example

' pMyArray is an Object
' varMySimpleList is a SimpleList object
' oGlobalConfig is a Commerce GlobalConfig object
varMySimpleList = oGlobalConfig.MakeSimpleListFromArray(oMyArray)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_mscscfg (in cs_mscscfg.dll)

See Also

GlobalConfig****Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.