DateTime.IConvertible.ToSByte(IFormatProvider) Method

Definition

Important

This API is not CLS-compliant.

不支持此转换。This conversion is not supported. 尝试使用此方法将引发 InvalidCastExceptionAttempting to use this method throws an InvalidCastException.

 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

一个实现 IFormatProvider 接口的对象。An object that implements the IFormatProvider interface. (未使用此参数;指定 null。)(This parameter is not used; specify null.)

Returns

SByte

未使用此成员的返回值。The return value for this member is not used.

Implements

Attributes

Exceptions

在所有情况下。In all cases.

Applies to