Partager via


ValueCollection.ToStringArray Method

The ToStringArray method converts the ValueCollection into an array of strings.

Syntax

public String[] ToStringArray();
Public Function ToStringArray() As String[]

Parameters

This method has no parameters.

Return Value

Returns an array of String values that contain the contents of the ValueCollection. Each member of this array contains the string representation of each element of the ValueCollection.

Exceptions

Exception type Condition
InvalidOperationException

One or more of the values in the collection cannot be converted to the specified data type.

Requirements

Product ILM 2007 FP1
Namespace Microsoft.MetadirectoryServices
Assembly Microsoft.MetadirectoryServices
.NET Framework .NET Framework 2.0

See Also

ValueCollection

Send comments about this topic to Microsoft

Build date: 2/16/2009