Skip to content

Commit fa7f3bc

Browse files
Add docs for ToSqlInternalRepresentation (#29900)
1 parent c281c67 commit fa7f3bc

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

docs/framework/additional-apis/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ These APIs support the product infrastructure and are not intended or supported
4343
* [System.Data.SqlTypes.SqlChars.Stream property](system.data.sqltypes.sqlchars.stream.md)
4444
* [System.Data.SqlTypes.SqlGuid Constructor](system.data.sqltypes.sqlguid.-ctor.md)
4545
* [System.Data.SqlTypes.SqlMoney Constructor](system.data.sqltypes.sqlmoney.-ctor.md)
46+
* [System.Data.SqlTypes.SqlMoney.ToSqlInternalRepresentation Method](system.data.sqltypes.sqlmoney.tosqlinternalrepresentation.md)
4647
* [System.Data.SqlTypes.SqlStreamChars Constructor](system.data.sqltypes.sqlstreamchars.-ctor.md)
4748
* [System.Data.SqlTypes.SqlStreamChars.CanSeek property](system.data.sqltypes.sqlstreamchars.canseek.md)
4849
* [System.Data.SqlTypes.SqlStreamChars.IsNull property](system.data.sqltypes.sqlstreamchars.isnull.md)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
description: "Learn more about: SqlMoney.ToSqlInternalRepresentation Method"
3+
title: SqlMoney.ToSqlInternalRepresentation Method (System.Data.SqlTypes)
4+
author: grabyourpitchforks
5+
ms.date: 06/16/2022
6+
ms.technology: "dotnet-data"
7+
topic_type:
8+
- "apiref"
9+
api_name:
10+
- "System.Data.SqlTypes.SqlMoney.ToSqlInternalRepresentation"
11+
api_location:
12+
- "System.Data.dll"
13+
api_type:
14+
- "Assembly"
15+
---
16+
# SqlMoney.ToSqlInternalRepresentation Method
17+
18+
Returns the value of this `SqlMoney` instance scaled by a ten-thousandth of a currency unit.
19+
For example, if the current `SqlMoney` instance represents __2__ currency units, the
20+
`ToSqlInternalRepresentation` method will return __20000__.
21+
22+
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>.
23+
24+
```csharp
25+
internal long ToSqlInternalRepresentation();
26+
```
27+
28+
## Remarks
29+
30+
> [!WARNING]
31+
> 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.
32+
>
33+
> Microsoft does not support the use of this method in a production application under any circumstance.
34+
35+
## Requirements
36+
37+
**Namespace:** <xref:System.Data.SqlTypes>
38+
39+
**Assembly:** System.Data (in System.Data.dll)
40+
41+
**.NET Framework versions:** Available since 2.0.

docs/framework/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ items:
479479
items:
480480
- name: SqlMoney constructor
481481
href: additional-apis/system.data.sqltypes.sqlmoney.-ctor.md
482+
- name: ToSqlInternalRepresentation method
483+
href: additional-apis/system.data.sqltypes.sqlmoney.tosqlinternalrepresentation.md
482484
- name: SqlStreamChars class
483485
items:
484486
- name: SqlStreamChars constructor

0 commit comments

Comments
 (0)