ToAsciiString()

String::ToAsciiString() const method

Converts string to std::string. Uses ASCII encoding.

std::string System::String::ToAsciiString() const

Return Value

String representation in Ascii.

Exceptions

ExceptionDescription
FormatExceptionif a string contains non-ASCII characters.

See Also