Redigera

Dela via


SingleType.FromObject Method

Definition

Returns a Single value that corresponds to the specified object and optional number format information.

Overloads

FromObject(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a Single value that corresponds to the specified object.

FromObject(Object, NumberFormatInfo)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a Single value that corresponds to the specified object.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

FromObject(Object)

Source:
SingleType.vb
Source:
SingleType.vb
Source:
SingleType.vb

Returns a Single value that corresponds to the specified object.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static float FromObject(System::Object ^ Value);
public static float FromObject (object? Value);
public static float FromObject (object Value);
static member FromObject : obj -> single
Public Shared Function FromObject (Value As Object) As Single
Public Function FromObject (Value As Object) As Single

Parameters

Value
Object

Required. Object to convert to a Single value.

Returns

The Single value corresponding to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to

FromObject(Object, NumberFormatInfo)

Source:
SingleType.vb
Source:
SingleType.vb
Source:
SingleType.vb

Returns a Single value that corresponds to the specified object.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static float FromObject(System::Object ^ Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static float FromObject (object? Value, System.Globalization.NumberFormatInfo? NumberFormat);
public static float FromObject (object Value, System.Globalization.NumberFormatInfo NumberFormat);
static member FromObject : obj * System.Globalization.NumberFormatInfo -> single
Public Shared Function FromObject (Value As Object, NumberFormat As NumberFormatInfo) As Single
Public Function FromObject (Value As Object, NumberFormat As NumberFormatInfo) As Single

Parameters

Value
Object

Required. Object to convert to a Single value.

NumberFormat
NumberFormatInfo

A NumberFormatInfo object that defines how numeric values are formatted and displayed, depending on the culture.

Returns

The Single value corresponding to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to