SqlMoney.FromTdsValue(Int64) Method

Definition

Initializes a new instance of the SqlMoney class with the specified Tabular Data Stream (TDS) long value.

C#
public static System.Data.SqlTypes.SqlMoney FromTdsValue(long value);

Parameters

value
Int64

The TDS long representation of the monetary value to initialize.

Returns

A new SqlMoney structure whose Value property is equal to the TDS value of the Int64 parameter.

Remarks

This method creates the SqlMoney structure object directly from the Tabular Data Stream (TDS) long value passed, without making a copy of it.

Applies to

Product Versions
.NET 7, 8, 9, 10