Partilhar via


GetIfCollection Method

Converts values read from the Fields property into appropriate objects such as a SimpleList object or a Variant Array.

Namespace:  Microsoft.CommerceServer.Interop.Configuration
Assembly:  Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)

Syntax

'Declaration
Public Function GetIfCollection ( _
    ByRef strList As Object _
) As Object
'Usage
Dim instance As GlobalConfigFreeThreaded
Dim strList As Object
Dim returnValue As Object

returnValue = instance.GetIfCollection(strList)
public Object GetIfCollection(
    ref Object strList
)
public:
virtual Object^ GetIfCollection(
    Object^% strList
) sealed
public final function GetIfCollection(
    strList : Object
) : Object

Parameters

  • strList
    Type: System..::.Object%
    The object that contains the encoded string to be converted.

Return Value

Type: System..::.Object
The array or a Simplelist if found. If there is no collection, returns strList as a plain string.

Implements

IGlobalConfig..::.GetIfCollection(Object%)

Remarks

Implements IGlobalConfig.GetIfCollection (GetIfCollection).

If the encoding in the string contained in the Fields property indicates a SimpleList object, then a SimpleList object is returned. If the encoding indicates a System.Array, then a System.Array is returned. If no collection object is indicated, then the method returns the original encoded input string.

Permissions

See Also

Reference

GlobalConfigFreeThreaded Class

GlobalConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace