แก้ไข

แชร์ผ่าน


FormatterConverter.ToSByte(Object) Method

Definition

Important

This API is not CLS-compliant.

Converts a value to a SByte.

public:
 virtual System::SByte ToSByte(System::Object ^ value);
[System.CLSCompliant(false)]
public sbyte ToSByte (object value);
[<System.CLSCompliant(false)>]
abstract member ToSByte : obj -> sbyte
override this.ToSByte : obj -> sbyte
Public Function ToSByte (value As Object) As SByte

Parameters

value
Object

The object to convert.

Returns

The converted value or null if the type parameter is null.

Implements

Attributes

Exceptions

The value parameter is null.

Remarks

This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToSByte method instead. For more information, see SByte, Convert, and ValueType.

Applies to