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

Added SqlBulkCopy.RowsCopied property to docs #4916

Closed
Closed
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
44 changes: 44 additions & 0 deletions xml/System.Data.SqlClient/SqlBulkCopy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,50 @@
[!code-csharp[DataWorks SqlBulkCopy.NotifyAfter#1](~/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.NotifyAfter/CS/source.cs#1)]
[!code-vb[DataWorks SqlBulkCopy.NotifyAfter#1](~/samples/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.NotifyAfter/VB/source.vb#1)]

]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/data/adonet/sql/bulk-copy-operations-in-sql-server">Bulk Copy Operations in SQL Server</related>
<related type="Article" href="/dotnet/framework/data/adonet/ado-net-overview">ADO.NET Overview</related>
</Docs>
</Member>
<Member MemberName="RowsCopied">
<MemberSignature Language="C#" Value="public int RowsCopied { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 RowsCopied" />
<MemberSignature Language="DocId" Value="P:System.Data.SqlClient.SqlBulkCopy.RowsCopied" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property RowsCopied As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property int RowsCopied { int get(); };" />
<MemberSignature Language="F#" Value="member this.RowsCopied : int" Usage="System.Data.SqlClient.SqlBulkCopy.RowsCopied" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.6.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.0</AssemblyVersion>
<AssemblyVersion>4.6.1.1</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the number of rows processed in the ongoing bulk copy operation.</summary>
<value>The integer value of the <see cref="P:System.Data.SqlClient.SqlBulkCopy.RowsCopied" /> property, by default zero.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
This value is incremented during the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied> event and does not imply that this number of rows has been sent to the server or committed.

During the execution of a bulk copy operation, this value can be accessed, but it cannot be changed. Any attempt to change it will throw an <xref:System.InvalidOperationException>.

]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/data/adonet/sql/bulk-copy-operations-in-sql-server">Bulk Copy Operations in SQL Server</related>
Expand Down