Skip to content

Commit 7cd16e2

Browse files
carlossanlopRon Petrusha
authored andcommitted
Manually comment System.IO.IsolatedStorage.IsolatedStorageFileStream (#2764)
* Manually comment System.IO.IsolatedStorage.IsolatedStorageFileStream * suggestions by rpetrusha Co-Authored-By: Ron Petrusha <[email protected]> * Write/WriteAsync disambiguation
1 parent e28ac89 commit 7cd16e2

File tree

1 file changed

+78
-52
lines changed

1 file changed

+78
-52
lines changed

xml/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml

Lines changed: 78 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,8 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
999999
</ReturnValue>
10001000
<Parameters />
10011001
<Docs>
1002-
<summary>To be added.</summary>
1003-
<returns>To be added.</returns>
1002+
<summary>Asynchronously releases the unmanaged resources used by the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" />.</summary>
1003+
<returns>A task that represents the asynchronous dispose operation.</returns>
10041004
<remarks>To be added.</remarks>
10051005
</Docs>
10061006
</Member>
@@ -1221,9 +1221,9 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
12211221
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="0" FrameworkAlternate="dotnet-uwp-10.0;netcore-3.0" />
12221222
</Parameters>
12231223
<Docs>
1224-
<param name="cancellationToken">To be added.</param>
1225-
<summary>To be added.</summary>
1226-
<returns>To be added.</returns>
1224+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
1225+
<summary>Asynchronously clears buffers for this stream and causes any buffered data to be written to the file.</summary>
1226+
<returns>A task that represents the asynchronous flush operation.</returns>
12271227
<remarks>To be added.</remarks>
12281228
</Docs>
12291229
</Member>
@@ -1521,9 +1521,9 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
15211521
<Parameter Name="buffer" Type="System.Span&lt;System.Byte&gt;" Index="0" FrameworkAlternate="netcore-3.0" />
15221522
</Parameters>
15231523
<Docs>
1524-
<param name="buffer">To be added.</param>
1525-
<summary>To be added.</summary>
1526-
<returns>To be added.</returns>
1524+
<param name="buffer">The buffer to write the data into.</param>
1525+
<summary>Copies bytes from the current buffered <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object to a byte span.</summary>
1526+
<returns>The total number of bytes read into the <paramref name="buffer" />. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.</returns>
15271527
<remarks>To be added.</remarks>
15281528
</Docs>
15291529
</Member>
@@ -1562,22 +1562,25 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
15621562
<Parameter Name="count" Type="System.Int32" />
15631563
</Parameters>
15641564
<Docs>
1565-
<param name="buffer">The buffer to read.</param>
1565+
<param name="buffer">The buffer to write the data into.</param>
15661566
<param name="offset">The offset in the buffer at which to begin writing.</param>
15671567
<param name="count">The maximum number of bytes to read.</param>
1568-
<summary>Copies bytes from the current buffered <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object to an array.</summary>
1568+
<summary>Copies bytes from the current buffered <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object to a byte array.</summary>
15691569
<returns>The total number of bytes read into the <paramref name="buffer" />. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.</returns>
15701570
<remarks>
15711571
<format type="text/markdown"><![CDATA[
1572-
1573-
## Remarks
1574-
The `buffer` parameter can be an instance of the <xref:System.Buffer> class, or an array of one of the following types: <xref:System.Byte>, <xref:System.SByte>, <xref:System.Char>, <xref:System.Int16>, <xref:System.Int32>, <xref:System.Int64>, <xref:System.UInt16>, <xref:System.UInt32>, <xref:System.UInt64>, <xref:System.Single>, or <xref:System.Double>. The `offset` parameter gives the offset of the byte in buffer at which to begin writing (index in the buffer), and the `count` parameter gives the maximum number of bytes that will be read from this stream. The returned value is the actual number of bytes read, or zero if the end of the stream is reached. If the read operation is successful, the current position of the stream is advanced by the number of bytes read. If an exception occurs, the current position of the stream is unchanged.
1575-
1576-
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> method treats the `buffer` parameter as a block of bytes, regardless of its actual type. Likewise, the `offset` and `count` parameters are always specified in bytes. For `buffer` parameters other than byte arrays, this means that an element index must be multiplied by the element size in bytes to form a correct value for `offset` or `count`.
1577-
1578-
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> method will return zero only if the end of the stream is reached. In all other cases, <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> always reads at least one byte from the stream before returning. If no data is available from the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object upon a call to <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A>, the method will block until at least one byte of data can be returned.
1579-
1580-
]]></format>
1572+
1573+
## Remarks
1574+
1575+
The `buffer` parameter can be an instance of the <xref:System.Buffer> class, or an array of one of the following types: <xref:System.Byte>, <xref:System.SByte>, <xref:System.Char>, <xref:System.Int16>, <xref:System.Int32>, <xref:System.Int64>, <xref:System.UInt16>, <xref:System.UInt32>, <xref:System.UInt64>, <xref:System.Single>, or <xref:System.Double>.
1576+
1577+
If the read operation is successful, the current position of the stream is advanced by the number of bytes read. If an exception occurs, the current position of the stream is unchanged.
1578+
1579+
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> method treats the `buffer` parameter as a block of bytes, regardless of its actual type. Likewise, the `offset` and `count` parameters are always specified in bytes. For `buffer` parameters other than byte arrays, this means that an element index or the number of elements must be multiplied by the element size in bytes to form a correct value for `offset` or `count`.
1580+
1581+
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> method will return zero only if the end of the stream is reached. In all other cases, <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A> always reads at least one byte from the stream before returning. If no data is available from the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object upon a call to <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.Read%2A>, the method will block until at least one byte of data can be returned.
1582+
1583+
]]></format>
15811584
</remarks>
15821585
</Docs>
15831586
</Member>
@@ -1605,10 +1608,10 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
16051608
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="1" FrameworkAlternate="netcore-3.0" />
16061609
</Parameters>
16071610
<Docs>
1608-
<param name="buffer">To be added.</param>
1609-
<param name="cancellationToken">To be added.</param>
1610-
<summary>To be added.</summary>
1611-
<returns>To be added.</returns>
1611+
<param name="buffer">The buffer to write the data into.</param>
1612+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
1613+
<summary>Asynchronously copies bytes from the current buffered <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object to a byte memory range.</summary>
1614+
<returns>A task that represents the asynchronous read operation. It wraps the total number of bytes read into the <paramref name="buffer" />. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.</returns>
16121615
<remarks>To be added.</remarks>
16131616
</Docs>
16141617
</Member>
@@ -1640,13 +1643,27 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
16401643
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="3" FrameworkAlternate="dotnet-uwp-10.0;netcore-3.0" />
16411644
</Parameters>
16421645
<Docs>
1643-
<param name="buffer">To be added.</param>
1644-
<param name="offset">To be added.</param>
1645-
<param name="count">To be added.</param>
1646-
<param name="cancellationToken">To be added.</param>
1647-
<summary>To be added.</summary>
1648-
<returns>To be added.</returns>
1649-
<remarks>To be added.</remarks>
1646+
<param name="buffer">The buffer to write the data into.</param>
1647+
<param name="offset">The offset in the buffer at which to begin writing.</param>
1648+
<param name="count">The maximum number of bytes to read.</param>
1649+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
1650+
<summary>Asynchronously copies bytes from the current buffered <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object to a byte array.</summary>
1651+
<returns>A task that represents the asynchronous read operation. It wraps the total number of bytes read into the <paramref name="buffer" />. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.</returns>
1652+
<remarks>
1653+
<format type="text/markdown"><![CDATA[
1654+
1655+
## Remarks
1656+
1657+
The `buffer` parameter can be an instance of the <xref:System.Buffer> class, or an array of one of the following types: <xref:System.Byte>, <xref:System.SByte>, <xref:System.Char>, <xref:System.Int16>, <xref:System.Int32>, <xref:System.Int64>, <xref:System.UInt16>, <xref:System.UInt32>, <xref:System.UInt64>, <xref:System.Single>, or <xref:System.Double>.
1658+
1659+
If the read operation is successful, the current position of the stream is advanced by the number of bytes read. If an exception occurs, the current position of the stream is unchanged.
1660+
1661+
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.ReadAsync%2A> method treats the `buffer` parameter as a block of bytes, regardless of its actual type. Likewise, the `offset` and `count` parameters are always specified in bytes. For `buffer` parameters other than byte arrays, this means that an element index or the number of elements must be multiplied by the element size in bytes to form a correct value for `offset` or `count`.
1662+
1663+
The <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.ReadAsync%2A> method will return zero only if the end of the stream is reached. In all other cases, <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.ReadAsync%2A> always reads at least one byte from the stream before returning. If no data is available from the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object upon a call to <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream.ReadAsync%2A>, the method will block until at least one byte of data can be returned.
1664+
1665+
]]></format>
1666+
</remarks>
16501667
</Docs>
16511668
</Member>
16521669
<Member MemberName="ReadByte">
@@ -1913,8 +1930,8 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
19131930
<Parameter Name="buffer" Type="System.ReadOnlySpan&lt;System.Byte&gt;" Index="0" FrameworkAlternate="netcore-3.0" />
19141931
</Parameters>
19151932
<Docs>
1916-
<param name="buffer">To be added.</param>
1917-
<summary>To be added.</summary>
1933+
<param name="buffer">The read-only byte span from which to copy bytes to the current isolated storage file stream.</param>
1934+
<summary>Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a read-only byte span.</summary>
19181935
<remarks>To be added.</remarks>
19191936
</Docs>
19201937
</Member>
@@ -1958,17 +1975,18 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
19581975
<Parameter Name="count" Type="System.Int32" />
19591976
</Parameters>
19601977
<Docs>
1961-
<param name="buffer">The buffer to write.</param>
1962-
<param name="offset">The byte offset in buffer from which to begin.</param>
1978+
<param name="buffer">The byte array from which to copy bytes to the current isolated storage file stream.</param>
1979+
<param name="offset">The byte offset in <paramref name="buffer" /> from which to begin.</param>
19631980
<param name="count">The maximum number of bytes to write.</param>
1964-
<summary>Writes a block of bytes to the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object using data read from a byte array.</summary>
1981+
<summary>Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a byte array.</summary>
19651982
<remarks>
19661983
<format type="text/markdown"><![CDATA[
1967-
1968-
## Remarks
1969-
The `offset` parameter gives the offset of the byte in the `buffer` at which to begin reading, and the `count` parameter gives the number of bytes that will be written to this <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object. If the write operation is successful, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is advanced by the number of bytes written. If an exception occurs, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is unchanged.
1970-
1971-
]]></format>
1984+
1985+
## Remarks
1986+
1987+
If the write operation is successful, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is advanced by the number of bytes written. If an exception occurs, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is unchanged.
1988+
1989+
]]></format>
19721990
</remarks>
19731991
<exception cref="T:System.IO.IsolatedStorage.IsolatedStorageException">The write attempt exceeds the quota for the <see cref="T:System.IO.IsolatedStorage.IsolatedStorageFileStream" /> object.</exception>
19741992
</Docs>
@@ -1997,10 +2015,10 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
19972015
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="1" FrameworkAlternate="netcore-3.0" />
19982016
</Parameters>
19992017
<Docs>
2000-
<param name="buffer">To be added.</param>
2001-
<param name="cancellationToken">To be added.</param>
2002-
<summary>To be added.</summary>
2003-
<returns>To be added.</returns>
2018+
<param name="buffer">The read-only byte memory from which to copy bytes to the current isolated storage file stream.</param>
2019+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
2020+
<summary>Asynchronously writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a read-only byte memory range.</summary>
2021+
<returns>A task that represents the asynchronous write operation.</returns>
20042022
<remarks>To be added.</remarks>
20052023
</Docs>
20062024
</Member>
@@ -2032,13 +2050,21 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
20322050
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="3" FrameworkAlternate="dotnet-uwp-10.0;netcore-3.0" />
20332051
</Parameters>
20342052
<Docs>
2035-
<param name="buffer">To be added.</param>
2036-
<param name="offset">To be added.</param>
2037-
<param name="count">To be added.</param>
2038-
<param name="cancellationToken">To be added.</param>
2039-
<summary>To be added.</summary>
2040-
<returns>To be added.</returns>
2041-
<remarks>To be added.</remarks>
2053+
<param name="buffer">The byte array from which to copy bytes to the current isolated storage file stream.</param>
2054+
<param name="offset">The byte offset in <paramref name="buffer" /> from which to begin.</param>
2055+
<param name="count">The maximum number of bytes to write.</param>
2056+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
2057+
<summary>Asynchronously writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a byte array.</summary>
2058+
<returns>A task that represents the asynchronous write operation.</returns>
2059+
<remarks>
2060+
<format type="text/markdown"><![CDATA[
2061+
2062+
## Remarks
2063+
2064+
If the write operation is successful, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is advanced by the number of bytes written. If an exception occurs, the current position of the <xref:System.IO.IsolatedStorage.IsolatedStorageFileStream> object is unchanged.
2065+
2066+
]]></format>
2067+
</remarks>
20422068
</Docs>
20432069
</Member>
20442070
<Member MemberName="WriteByte">
@@ -2097,4 +2123,4 @@ Dim source As New IsolatedStorageFileStream(UserName,FileMode.Open,isoFile)
20972123
</Docs>
20982124
</Member>
20992125
</Members>
2100-
</Type>
2126+
</Type>

0 commit comments

Comments
 (0)