The ValueCollection method creates a new ValueCollection object that contains the given strings.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim values As String()
Dim returnValue As ValueCollection

returnValue = Utils.ValueCollection(values)

Syntax

Visual Basic
Public Shared Function ValueCollection ( _
		values As String() _
) As ValueCollection
C#
public static ValueCollection ValueCollection (
		string[] values
)
C++
public:
static ValueCollection^ ValueCollection (
		array<String^>^ values
)
J#
public static ValueCollection ValueCollection (
		String[] values
)
JScript
public static function ValueCollection (
		values : String[]
) : ValueCollection

Parameters

values

Contains an array of strings that will be added to the new collection.

Return Value

Returns a new ValueCollection object that contains a copy of values.

Exceptions

Exception type Condition
System.ArgumentNullException

The argument is null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also