SqlMoney::Subtraction Operator (SqlMoney, SqlMoney)

 
equivalentCodeEntityM:System.Data.SqlTypes.SqlMoney.Subtract(System.Data.SqlTypes.SqlMoney,System.Data.SqlTypes.SqlMoney)

The subtraction operator subtracts the second SqlMoney parameter from the first.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public:
static SqlMoney operator -(
	SqlMoney x,
	SqlMoney y
)

Parameters

x
Type: System.Data.SqlTypes::SqlMoney

A SqlMoney structure.

y
Type: System.Data.SqlTypes::SqlMoney

A SqlMoney structure.

Return Value

Type: System.Data.SqlTypes::SqlMoney

A new SqlMoney structure that contains the results of the subtraction.

.NET Framework
Available since 1.1
Return to top
Show: