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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin