Bewerken

Delen via


XmlConvert.ToSByte(String) Method

Definition

Important

This API is not CLS-compliant.

Converts the String to a SByte equivalent.

public:
 static System::SByte ToSByte(System::String ^ s);
[System.CLSCompliant(false)]
public static sbyte ToSByte (string s);
[<System.CLSCompliant(false)>]
static member ToSByte : string -> sbyte
Public Shared Function ToSByte (s As String) As SByte

Parameters

s
String

The string to convert.

Returns

An SByte equivalent of the string.

Attributes

Exceptions

s is not in the correct format.

s represents a number less than SByte.MinValue or greater than SByte.MaxValue.

Applies to