Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/framework/additional-apis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ These APIs support the product infrastructure and are not intended or supported
* [System.Data.SqlTypes.SqlChars.Stream property](system.data.sqltypes.sqlchars.stream.md)
* [System.Data.SqlTypes.SqlGuid Constructor](system.data.sqltypes.sqlguid.-ctor.md)
* [System.Data.SqlTypes.SqlMoney Constructor](system.data.sqltypes.sqlmoney.-ctor.md)
* [System.Data.SqlTypes.SqlMoney.ToSqlInternalRepresentation Method](system.data.sqltypes.sqlmoney.tosqlinternalrepresentation.md)
* [System.Data.SqlTypes.SqlStreamChars Constructor](system.data.sqltypes.sqlstreamchars.-ctor.md)
* [System.Data.SqlTypes.SqlStreamChars.CanSeek property](system.data.sqltypes.sqlstreamchars.canseek.md)
* [System.Data.SqlTypes.SqlStreamChars.IsNull property](system.data.sqltypes.sqlstreamchars.isnull.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
description: "Learn more about: SqlMoney.ToSqlInternalRepresentation Method"
title: SqlMoney.ToSqlInternalRepresentation Method (System.Data.SqlTypes)
author: grabyourpitchforks
ms.date: 06/16/2022
ms.technology: "dotnet-data"
topic_type:
- "apiref"
api_name:
- "System.Data.SqlTypes.SqlMoney.ToSqlInternalRepresentation"
api_location:
- "System.Data.dll"
api_type:
- "Assembly"
---
# SqlMoney.ToSqlInternalRepresentation Method

Returns the value of this `SqlMoney` instance scaled by a ten-thousandth of a currency unit.
For example, if the current `SqlMoney` instance represents __2__ currency units, the
`ToSqlInternalRepresentation` method will return __20000__.

If this `SqlMoney` instance represents a null value (see <xref:System.Data.SqlTypes.SqlMoney.IsNull>), calling this method will throw a <xref:System.Data.SqlTypes.SqlNullValueException>.

```csharp
internal long ToSqlInternalRepresentation();
```

## Remarks

> [!WARNING]
> This method is internal and is not meant to be used directly in your code. This API may not be available in future versions of .NET.
>
> Microsoft does not support the use of this method in a production application under any circumstance.

## Requirements

**Namespace:** <xref:System.Data.SqlTypes>

**Assembly:** System.Data (in System.Data.dll)

**.NET Framework versions:** Available since 2.0.
2 changes: 2 additions & 0 deletions docs/framework/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ items:
items:
- name: SqlMoney constructor
href: additional-apis/system.data.sqltypes.sqlmoney.-ctor.md
- name: ToSqlInternalRepresentation method
href: additional-apis/system.data.sqltypes.sqlmoney.tosqlinternalrepresentation.md
- name: SqlStreamChars class
items:
- name: SqlStreamChars constructor
Expand Down