Char.IConvertible.ToSByte(IFormatProvider) Method

Definition

Important

This API is not CLS-compliant.

有关此成员的说明,请参见 ToSByte(IFormatProvider)For a description of this member, see ToSByte(IFormatProvider).

 virtual System::SByte System.IConvertible.ToSByte(IFormatProvider ^ provider) = IConvertible::ToSByte;
sbyte IConvertible.ToSByte (IFormatProvider provider);
[System.CLSCompliant(false)]
sbyte IConvertible.ToSByte (IFormatProvider provider);
abstract member System.IConvertible.ToSByte : IFormatProvider -> sbyte
override this.System.IConvertible.ToSByte : IFormatProvider -> sbyte
Function ToSByte (provider As IFormatProvider) As SByte Implements IConvertible.ToSByte

Parameters

provider
IFormatProvider

该参数将被忽略。This parameter is ignored.

Returns

SByte

当前 Char 对象的转换值。The converted value of the current Char object.

Implements

Attributes

Remarks

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Char 实例被强制转换为 IConvertible 接口时使用。It can be used only when the Char instance is cast to an IConvertible interface. 建议的替代项是改为调用 Convert.ToSByte(Char) 方法。The recommended alternative is to call the Convert.ToSByte(Char) method instead.

Applies to