This documentation is archived and is not being maintained.

SqlMoney Members

SqlMoney overview

Public Constructors

public constructorSqlMoney Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the SqlMoney structure.

Public Fields

public fieldstatic (Shared in Visual Basic)MaxValue

Supported by the .NET Compact Framework.

Represents the maximum value that can be assigned to the Value property of an instance of the SqlMoney class.
public fieldstatic (Shared in Visual Basic)MinValue

Supported by the .NET Compact Framework.

Represents the minimum value that can be assigned to Value property of an instance of the SqlMoney class.
public fieldstatic (Shared in Visual Basic)Null

Supported by the .NET Compact Framework.

Represents a null value that can be assigned to the Value property of an instance of the SqlMoney class.
public fieldstatic (Shared in Visual Basic)Zero

Supported by the .NET Compact Framework.

Represents the zero value that can be assigned to the Value property of an instance of the SqlMoney class.

Public Properties

public propertyIsNull

Supported by the .NET Compact Framework.

Returns a value indicating whether the Value property contains null.
public propertyValue

Supported by the .NET Compact Framework.

Gets the monetary value of an instance of the SqlMoney structure. This property is read-only.

Public Methods

public methodstatic (Shared in Visual Basic)Add

Supported by the .NET Compact Framework.

Calculates the sum of the two SqlMoney parameters.
public methodCompareTo

Supported by the .NET Compact Framework.

Compares this instance to the supplied object and returns an indication of their relative values.
public methodstatic (Shared in Visual Basic)Divide

Supported by the .NET Compact Framework.

The division operator divides the first SqlMoney parameter by the second.
public methodEquals

Supported by the .NET Compact Framework.

Overloaded.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Gets the hash code for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)GreaterThan

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is greater than the second.
public methodstatic (Shared in Visual Basic)GreaterThanOrEqual

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is greater than or equal to the second.
public methodstatic (Shared in Visual Basic)LessThan

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is less than the second.
public methodstatic (Shared in Visual Basic)LessThanOrEqual

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is less than or equal to the second.
public methodstatic (Shared in Visual Basic)Multiply

Supported by the .NET Compact Framework.

The multiplicaion operator calculates the product of the two SqlMoney parameters.
public methodstatic (Shared in Visual Basic)NotEquals

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if they are not equal.
public methodstatic (Shared in Visual Basic)Parse

Supported by the .NET Compact Framework.

Converts the String representation of a number to its SqlMoney equivalent.
public methodstatic (Shared in Visual Basic)Subtract

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Converts the Value of this instance of SqlMoney as a Decimal structure.
public methodToDouble

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to a double.
public methodToInt32

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to integer.
public methodToInt64

Supported by the .NET Compact Framework.

Converts the Value of this SqlMoney structure to a long integer.
public methodToSqlBoolean

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlBoolean.
public methodToSqlByte

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlByte.
public methodToSqlDecimal

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlDecimal.
public methodToSqlDouble

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlDouble.
public methodToSqlInt16

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlInt16.
public methodToSqlInt32

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlInt32.
public methodToSqlInt64

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlInt64.
public methodToSqlSingle

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlSingle.
public methodToSqlString

Supported by the .NET Compact Framework.

Converts this SqlMoney structure to SqlString.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Converts this instance of SqlMoney to string.

Public Operators and Type Conversions

public operatorstatic (Shared in Visual Basic)Addition Operator

Supported by the .NET Compact Framework.

Calculates the sum of the two SqlMoney parameters.
public operatorstatic (Shared in Visual Basic)Division Operator

Supported by the .NET Compact Framework.

The division operator divides the first SqlMoney parameter by the second.
public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if they are equal.
public operatorstatic (Shared in Visual Basic)Greater Than Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is greater than the second.
public operatorstatic (Shared in Visual Basic)Greater Than Or Equal Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is greater than or equal to the second.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if they are not equal.
public operatorstatic (Shared in Visual Basic)Less Than Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is less than the second.
public operatorstatic (Shared in Visual Basic)Less Than Or Equal Operator

Supported by the .NET Compact Framework.

Performs a logical comparison of the two SqlMoney parameters to determine if the first is less than or equal to the second.
public operatorstatic (Shared in Visual Basic)Multiplication Operator

Supported by the .NET Compact Framework.

The multiplicaion operator calculates the product of the two SqlMoney parameters.
public operatorstatic (Shared in Visual Basic)Subtraction Operator

Supported by the .NET Compact Framework.

The subtraction operator subtracts the second SqlMoney parameter from the first.
public operatorstatic (Shared in Visual Basic)Unary Negation Operator

Supported by the .NET Compact Framework.

The unary minus operator negates the SqlMoney parameter.
public operatorstatic (Shared in Visual Basic)SqlBoolean to SqlMoney Conversion

Supported by the .NET Compact Framework.

This implicit operator converts the supplied SqlBoolean parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlDecimal to SqlMoney Conversion

Supported by the .NET Compact Framework.

This operator converts the supplied SqlDecimal parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlDouble to SqlMoney Conversion

Supported by the .NET Compact Framework.

This operator converts the supplied SqlDouble parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlMoney to Decimal Conversion

Supported by the .NET Compact Framework.

Converts the specified SqlMoney structure to Decimal.
public operatorstatic (Shared in Visual Basic)SqlSingle to SqlMoney Conversion

Supported by the .NET Compact Framework.

This operator converts the supplied SqlSingle parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlString to SqlMoney Conversion

Supported by the .NET Compact Framework.

This operator converts the SqlString parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)Decimal to SqlMoney Conversion

Supported by the .NET Compact Framework.

Converts the Decimal parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlByte to SqlMoney Conversion

Supported by the .NET Compact Framework.

This implicit operator converts the supplied SqlByte parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlInt16 to SqlMoney Conversion

Supported by the .NET Compact Framework.

This implicit operator converts the supplied SqlInt16 parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlInt32 to SqlMoney Conversion

Supported by the .NET Compact Framework.

This implicit operator converts the supplied SqlInt32 parameter to SqlMoney.
public operatorstatic (Shared in Visual Basic)SqlInt64 to SqlMoney Conversion

Supported by the .NET Compact Framework.

This implicit operator converts the supplied SqlInt64 parameter to SqlMoney.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

SqlMoney Structure | System.Data.SqlTypes Namespace

Show: