Conversions.ToChar 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 the specified object to a Char value.
Overloads
ToChar(Object) |
Converts an object to a Char value. |
ToChar(String) |
Converts a string to a Char value. |
ToChar(Object)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts an object to a Char value.
public:
static char ToChar(System::Object ^ Value);
public static char ToChar (object Value);
public static char ToChar (object? Value);
static member ToChar : obj -> char
Public Shared Function ToChar (Value As Object) As Char
Parameters
- Value
- Object
The object to convert.
Returns
The Char
value of the object.
Applies to
ToChar(String)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts a string to a Char value.
public:
static char ToChar(System::String ^ Value);
public static char ToChar (string Value);
public static char ToChar (string? Value);
static member ToChar : string -> char
Public Shared Function ToChar (Value As String) As Char
Parameters
- Value
- String
The string to convert.
Returns
The Char
value of the string.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.