Convert.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts values to String objects.
Overloads
ToString(Double) |
This API supports the product infrastructure and is not intended to be used directly from your code. |
ToString(Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. |
ToString(Object, Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified Object to a String, optionally allowing data loss. |
ToString(Double)
ToString(Boolean)
ToString(Object, Boolean)
public:
static System::String ^ ToString(System::Object ^ value, bool explicitOK);
public static string ToString (object value, bool explicitOK);
static member ToString : obj * bool -> string
Public Shared Function ToString (value As Object, explicitOK As Boolean) As String
Parameters
- value
- Object
The value to convert.
- explicitOK
- Boolean
true
to allow data loss; otherwise, false
.
Returns
value
converted to a String.
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla