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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour