Share via


GetIfCollection Method

Converts values read from the Fields property into appropriate object 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 SiteConfigReadOnlyFreeThreaded
Dim strList As Object
Dim returnValue As Object

returnValue = instance.GetIfCollection(strList)
public Object GetIfCollection(
    ref Object strList
)
public:
Object^ GetIfCollection(
    Object^% strList
)
public 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.

Remarks

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

SiteConfigReadOnlyFreeThreaded Class

SiteConfigReadOnlyFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace