ValueCollection.ToStringArray Method

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

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)


Dim instance As ValueCollection
Dim returnValue As String()

returnValue = instance.ToStringArray


Public MustOverride Function ToStringArray As String()
public abstract string[] ToStringArray ()
virtual array<String^>^ ToStringArray () abstract
public abstract String[] ToStringArray ()
public abstract function ToStringArray () : String[]

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.


Exception type Condition

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

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.


Target Platforms

See Also


ValueCollection Class
ValueCollection Members
Microsoft.MetadirectoryServices Namespace