Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged SqlFilestream #2398

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
40 changes: 40 additions & 0 deletions doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,26 @@ Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanRead%2A> property to dete
<exception cref="T:System.NotSupportedException">The object does not support reading of data.</exception>
<related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
</Read>
<ReadAsync1>
<param name="buffer">The region of memory to write the data into.</param>
<param name="cancellationToken">
The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None"/>.
</param>
<summary>Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</ReadAsync1>
<ReadAsync2>
<param name="buffer">The buffer to write the data into.</param>
<param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream.</param>
<param name="count">The maximum number of bytes to read.</param>
<param name="cancellationToken">
The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None"/>.
</param>
<summary>Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</ReadAsync2>
<ReadByte>
<summary>Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.</summary>
<returns>The unsigned byte cast to an <see cref="T:System.Int32" />, or -1 if at the end of the stream.</returns>
Expand Down Expand Up @@ -322,6 +342,26 @@ Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanWrite%2A> property to det
<exception cref="T:System.NotSupportedException">The object does not support writing of data.</exception>
<related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
</Write>
<WriteAsync1>
<param name="buffer">The region of memory to write data from.</param>
<param name="cancellationToken">
The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None"/>.
</param>
<summary>Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</WriteAsync1>
<WriteAsync2>
<param name="buffer">The buffer to write the data into.</param>
<param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream</param>
<param name="count">The maximum number of bytes to read.</param>
<param name="cancellationToken">
The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None"/>.
</param>
<summary>Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</WriteAsync2>
<WriteByte>
<param name="value">The byte to write to the stream.</param>
<summary>Writes a byte to the current position in the stream and advances the position within the stream by one byte.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
// NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available.
// New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future.

using Microsoft.VisualBasic;
using System.Threading.Tasks;
using System.Threading;
using System;

[assembly: System.CLSCompliant(true)]
namespace Microsoft.Data
{
Expand Down Expand Up @@ -75,10 +80,22 @@ public override void Flush() { }
public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/EndRead/*' />
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
#if !NETSTANDARD2_0 && !NETFRAMEWORK
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/ReadAsync1/*' />
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) { throw null; }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/ReadAsync2/*' />
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { throw null; }
#endif
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/BeginWrite/*' />
public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, System.Object state) { throw null; }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/EndWrite/*' />
public override void EndWrite(System.IAsyncResult asyncResult) { }
#if !NETSTANDARD2_0 && !NETFRAMEWORK
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/WriteAsync1/*' />
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) { throw null; }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/WriteAsync2/*' />
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { throw null; }
#endif
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Seek/*' />
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/SetLength/*' />
Expand Down
Loading
Loading