XmlConvert.ToChar(String) Método

Definição

Converte o String em um Char equivalente.Converts the String to a Char equivalent.

public:
 static char ToChar(System::String ^ s);
public static char ToChar (string s);
static member ToChar : string -> char
Public Shared Function ToChar (s As String) As Char

Parâmetros

s
String

A cadeia de caracteres que contém um único caractere a ser convertido.The string containing a single character to convert.

Retornos

Char

Um Char que representa o caractere único.A Char representing the single character.

Exceções

O valor do parâmetro s é null.The value of the s parameter is null.

O parâmetro s contém mais de um caractere.The s parameter contains more than one character.

Aplica-se a