StringValues.ToArray Method

Definition

Creates a string array from the current StringValues object.

public:
 cli::array <System::String ^> ^ ToArray();
public string?[] ToArray ();
member this.ToArray : unit -> string[]
Public Function ToArray () As String()

Returns

String[]

A string array represented by this instance.

Remarks

If the StringValues contains a single string internally, it is copied to a new array.

If the StringValues contains an array internally it returns that array instance.

Applies to

Produto Versões
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)