Partager via


ValueCollection.ToStringArray Method

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

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

Usage

'Usage
Dim instance As ValueCollection
Dim returnValue As String()

returnValue = instance.ToStringArray

Syntax

'Declaration
Public MustOverride Function ToStringArray As String()
public abstract string[] ToStringArray ()
public:
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.

Exceptions

Exception type Condition
System.InvalidOperationException

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.

Platforms

Target Platforms

See Also

Reference

ValueCollection Class
ValueCollection Members
Microsoft.MetadirectoryServices Namespace