Editare

Partajați prin


DecimalType.FromObject Method

Definition

Returns a Decimal value that corresponds to the specified Boolean value 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 Decimal 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 Decimal value that corresponds to the specified object and number format information.

Remarks

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

FromObject(Object)

Source:
DecimalType.vb
Source:
DecimalType.vb
Source:
DecimalType.vb

Returns a Decimal 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 System::Decimal FromObject(System::Object ^ Value);
public static decimal FromObject (object? Value);
public static decimal FromObject (object Value);
static member FromObject : obj -> decimal
Public Shared Function FromObject (Value As Object) As Decimal
Public Function FromObject (Value As Object) As Decimal

Parameters

Value
Object

Required. Object to convert to a Decimal value.

Returns

The Decimal value that corresponds 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:
DecimalType.vb
Source:
DecimalType.vb
Source:
DecimalType.vb

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

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

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

Parameters

Value
Object

Required. Object to convert to a Decimal value.

NumberFormat
NumberFormatInfo

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

Returns

The Decimal value that corresponds to Value.

Remarks

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

Applies to