Partilhar via


ReadOnlyStringCollection Constructor (String[])

Initializes a new instance of the ReadOnlyStringCollection class from a given string array.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    stringArray As String() _
)
'Usage
Dim stringArray As String()

Dim instance As New ReadOnlyStringCollection(stringArray)
public ReadOnlyStringCollection(
    string[] stringArray
)
public:
ReadOnlyStringCollection(
    array<String^>^ stringArray
)
public function ReadOnlyStringCollection(
    stringArray : String[]
)

Parameters

  • stringArray
    Type: array<System..::.String>[]()[]
    An array of strings. May be nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Use this method to create a new instance of the ReadOnlyStringCollection class from a given string array. The ReadOnlyStringCollection class is a read-only collection that contains String objects.

Permissions

See Also

Reference

ReadOnlyStringCollection Class

ReadOnlyStringCollection Members

ReadOnlyStringCollection Overload

Microsoft.CommerceServer.Runtime Namespace