SiteConfig.MakeArrayFromSimpleList Method (PIA)

[Visual Basic .NET] Use this method to convert the specified SimpleList object into an Array.

[C#] Use this method to convert the specified SimpleList object into a System.Array.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Function MakeArrayFromSimpleList(ByReflist As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
…
public object MakeArrayFromSimpleList(ref objectlist);

Parameters

[Visual Basic .NET]

  • list
    An object reference to the SimpleList object that you want to convert into a System.Array.

[C#]

  • list
    A SimpleList object that you want to convert into a System.Array.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an Object containing the converted System.Array.

[C#] This method returns the converted System.Array.

Exceptions

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

Remarks

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

  • A special group of methods is 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

' oMyObject is an Object
' varMySimpleList is a SimpleList object
' oSiteConfigReadOnly is a Commerce SiteConfigReadOnly object
oMyObject = oSiteConfigReadOnly.MakeArrayFromSimpleList(varMySimpleList)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_mscscfg (in cs_mscscfg.dll)

See Also

SiteConfig Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.