SqlTransaction.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="SqlTransaction" FullName="System.Data.SqlClient.SqlTransaction">
  3. <TypeSignature Language="C#" Maintainer="auto" Value="public sealed class SqlTransaction : System.Data.Common.DbTransaction" />
  4. <AssemblyInfo>
  5. <AssemblyName>System.Data</AssemblyName>
  6. <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
  7. <AssemblyVersion>1.0.3300.0</AssemblyVersion>
  8. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  9. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  10. </AssemblyInfo>
  11. <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
  12. <Base>
  13. <BaseTypeName>System.Data.Common.DbTransaction</BaseTypeName>
  14. </Base>
  15. <Interfaces>
  16. </Interfaces>
  17. <Docs>
  18. <remarks>
  19. <attribution license="cc4" from="Microsoft" modified="false" />
  20. <para>The application creates a <see cref="T:System.Data.SqlClient.SqlTransaction" /> object by calling <see cref="M:System.Data.SqlClient.SqlConnection.BeginTransaction" /> on the <see cref="T:System.Data.SqlClient.SqlConnection" /> object. All subsequent operations associated with the transaction (for example, committing or aborting the transaction), are performed on the <see cref="T:System.Data.SqlClient.SqlTransaction" /> object.</para>
  21. <block subset="none" type="note">
  22. <para>Try/Catch exception handling should always be used when committing or rolling back a <see cref="T:System.Data.SqlClient.SqlTransaction" />. Both <see cref="M:System.Data.SqlClient.SqlTransaction.Commit" /> and <see cref="M:System.Data.SqlClient.SqlTransaction.Rollback" /> generate an <see cref="T:System.InvalidOperationException" /> if the connection is terminated or if the transaction has already been rolled back on the server.</para>
  23. </block>
  24. <para>For more information on ssNoVersion transactions, see <see cref="http://msdn.microsoft.com/library/ms175127(SQL.105).aspx">Explicit Transactions</see> and <see cref="http://msdn.microsoft.com/library/ms187484(SQL.105).aspx">Coding Efficient Transactions</see>.</para>
  25. </remarks>
  26. <summary>
  27. <attribution license="cc4" from="Microsoft" modified="false" />
  28. <para>Represents a tsql transaction to be made in a ssNoVersion database. This class cannot be inherited. </para>
  29. </summary>
  30. </Docs>
  31. <Members>
  32. <Member MemberName="Commit">
  33. <MemberSignature Language="C#" Value="public override void Commit ();" />
  34. <MemberType>Method</MemberType>
  35. <ReturnValue>
  36. <ReturnType>System.Void</ReturnType>
  37. </ReturnValue>
  38. <Parameters />
  39. <Docs>
  40. <remarks>
  41. <attribution license="cc4" from="Microsoft" modified="false" />
  42. <para>The <see cref="M:System.Data.SqlClient.SqlTransaction.Commit" /> method is equivalent to the Transact-SQL COMMIT TRANSACTION statement. You cannot roll back a transaction once it has been committed, because all modifications have become a permanent part of the database. For more information, see SQL Server Books Online.</para>
  43. <block subset="none" type="note">
  44. <para>Try/Catch exception handling should always be used when committing or rolling back a <see cref="T:System.Data.SqlClient.SqlTransaction" />. Both Commit and <see cref="M:System.Data.SqlClient.SqlTransaction.Rollback" /> generates an <see cref="T:System.InvalidOperationException" /> if the connection is terminated or if the transaction has already been rolled back on the server.</para>
  45. </block>
  46. <para>For more information on SQL Server transactions, see "Explicit Transactions" and "Coding Efficient Transactions" in SQL Server Books Online.</para>
  47. </remarks>
  48. <summary>
  49. <attribution license="cc4" from="Microsoft" modified="false" />
  50. <para>Commits the database transaction.</para>
  51. </summary>
  52. </Docs>
  53. <AssemblyInfo>
  54. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  55. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  56. </AssemblyInfo>
  57. </Member>
  58. <Member MemberName="Connection">
  59. <MemberSignature Language="C#" Value="public System.Data.SqlClient.SqlConnection Connection { get; }" />
  60. <MemberType>Property</MemberType>
  61. <ReturnValue>
  62. <ReturnType>System.Data.SqlClient.SqlConnection</ReturnType>
  63. </ReturnValue>
  64. <Docs>
  65. <value>To be added: an object of type 'SqlConnection'</value>
  66. <remarks>
  67. <attribution license="cc4" from="Microsoft" modified="false" />
  68. <para>A single application may have multiple database connections, each with zero or more transactions. This property lets you determine the connection object associated with a particular transaction created by <see cref="M:System.Data.SqlClient.SqlConnection.BeginTransaction" />.</para>
  69. </remarks>
  70. <summary>
  71. <attribution license="cc4" from="Microsoft" modified="false" />
  72. <para>Gets the <see cref="T:System.Data.SqlClient.SqlConnection" /> object associated with the transaction, or null if the transaction is no longer valid.</para>
  73. </summary>
  74. </Docs>
  75. <AssemblyInfo>
  76. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  77. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  78. </AssemblyInfo>
  79. </Member>
  80. <Member MemberName="DbConnection">
  81. <MemberSignature Language="C#" Value="protected override System.Data.Common.DbConnection DbConnection { get; }" />
  82. <MemberType>Property</MemberType>
  83. <AssemblyInfo>
  84. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  85. </AssemblyInfo>
  86. <ReturnValue>
  87. <ReturnType>System.Data.Common.DbConnection</ReturnType>
  88. </ReturnValue>
  89. <Docs>
  90. <summary>To be added.</summary>
  91. <value>To be added.</value>
  92. <remarks>To be added.</remarks>
  93. </Docs>
  94. </Member>
  95. <Member MemberName="Dispose">
  96. <MemberSignature Language="C#" Value="public void Dispose ();" />
  97. <MemberType>Method</MemberType>
  98. <ReturnValue>
  99. <ReturnType>System.Void</ReturnType>
  100. </ReturnValue>
  101. <Parameters />
  102. <Docs>
  103. <remarks>To be added</remarks>
  104. <summary>
  105. <attribution license="cc4" from="Microsoft" modified="false" />
  106. <para>Releases the resources that are held by the object. </para>
  107. </summary>
  108. </Docs>
  109. <AssemblyInfo>
  110. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  111. </AssemblyInfo>
  112. </Member>
  113. <Member MemberName="Dispose">
  114. <MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
  115. <MemberType>Method</MemberType>
  116. <AssemblyInfo>
  117. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  118. </AssemblyInfo>
  119. <ReturnValue>
  120. <ReturnType>System.Void</ReturnType>
  121. </ReturnValue>
  122. <Parameters>
  123. <Parameter Name="disposing" Type="System.Boolean" />
  124. </Parameters>
  125. <Docs>
  126. <param name="disposing">To be added.</param>
  127. <summary>To be added.</summary>
  128. <remarks>To be added.</remarks>
  129. </Docs>
  130. </Member>
  131. <Member MemberName="IsolationLevel">
  132. <MemberSignature Language="C#" Value="public override System.Data.IsolationLevel IsolationLevel { get; }" />
  133. <MemberType>Property</MemberType>
  134. <ReturnValue>
  135. <ReturnType>System.Data.IsolationLevel</ReturnType>
  136. </ReturnValue>
  137. <Docs>
  138. <value>To be added: an object of type 'Data.IsolationLevel'</value>
  139. <remarks>
  140. <attribution license="cc4" from="Microsoft" modified="false" />
  141. <para>Parallel transactions are not supported. Therefore, the <see cref="T:System.Data.IsolationLevel" /> applies to the whole transaction.</para>
  142. <para>For more information on SQL Server isolation levels, see "Isolation Levels in the Database Engine" in SQL Server Books Online.</para>
  143. </remarks>
  144. <summary>
  145. <attribution license="cc4" from="Microsoft" modified="false" />
  146. <para>Specifies the <see cref="T:System.Data.IsolationLevel" /> for this transaction.</para>
  147. </summary>
  148. </Docs>
  149. <AssemblyInfo>
  150. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  151. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  152. </AssemblyInfo>
  153. </Member>
  154. <Member MemberName="Rollback">
  155. <MemberSignature Language="C#" Value="public override void Rollback ();" />
  156. <MemberType>Method</MemberType>
  157. <ReturnValue>
  158. <ReturnType>System.Void</ReturnType>
  159. </ReturnValue>
  160. <Parameters />
  161. <Docs>
  162. <remarks>
  163. <attribution license="cc4" from="Microsoft" modified="false" />
  164. <para>The <see cref="M:System.Data.SqlClient.SqlTransaction.Rollback" /> method is equivalent to the Transact-SQL ROLLBACK TRANSACTION statement. For more information, see SQL Server Books Online.</para>
  165. <para>The transaction can only be rolled back from a pending state (after <see cref="M:System.Data.SqlClient.SqlConnection.BeginTransaction" /> has been called, but before <see cref="M:System.Data.SqlClient.SqlTransaction.Commit" /> is called). The transaction is rolled back in the event it is disposed before Commit or Rollback is called.</para>
  166. <block subset="none" type="note">
  167. <para>Try/Catch exception handling should always be used when rolling back a transaction. A Rollback generates an <see cref="T:System.InvalidOperationException" /> if the connection is terminated or if the transaction has already been rolled back on the server.</para>
  168. </block>
  169. <para>For more information on SQL Server transactions, see "Explicit Transactions" and "Coding Efficient Transactions" in SQL Server Books Online.</para>
  170. </remarks>
  171. <summary>
  172. <attribution license="cc4" from="Microsoft" modified="false" />
  173. <para>Rolls back a transaction from a pending state.</para>
  174. </summary>
  175. </Docs>
  176. <AssemblyInfo>
  177. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  178. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  179. </AssemblyInfo>
  180. </Member>
  181. <Member MemberName="Rollback">
  182. <MemberSignature Language="C#" Value="public void Rollback (string transactionName);" />
  183. <MemberType>Method</MemberType>
  184. <ReturnValue>
  185. <ReturnType>System.Void</ReturnType>
  186. </ReturnValue>
  187. <Parameters>
  188. <Parameter Name="transactionName" Type="System.String" />
  189. </Parameters>
  190. <Docs>
  191. <remarks>
  192. <attribution license="cc4" from="Microsoft" modified="false" />
  193. <para>The <see cref="M:System.Data.SqlClient.SqlTransaction.Rollback" /> method is equivalent to the Transact-SQL ROLLBACK TRANSACTION statement. For more information, see "Explicit Transactions" and "Transaction Savepoints" in SQL Server Books Online.</para>
  194. <para>The transaction can only be rolled back from a pending state (after <see cref="M:System.Data.SqlClient.SqlConnection.BeginTransaction" /> has been called, but before <see cref="M:System.Data.SqlClient.SqlTransaction.Commit" /> is called). The transaction is rolled back if it is disposed before Commit or Rollback is called. </para>
  195. <block subset="none" type="note">
  196. <para>Try/Catch exception handling should always be used when rolling back a transaction. A Rollback generates an <see cref="T:System.InvalidOperationException" /> if the connection is terminated or if the transaction has already been rolled back on the server.</para>
  197. </block>
  198. <para>For more information on SQL Server transactions, see "Explicit Transactions" and "Coding Efficient Transactions" in SQL Server Books Online.</para>
  199. </remarks>
  200. <summary>
  201. <attribution license="cc4" from="Microsoft" modified="false" />
  202. <para>Rolls back a transaction from a pending state, and specifies the transaction or savepoint name.</para>
  203. </summary>
  204. <param name="transactionName">
  205. <attribution license="cc4" from="Microsoft" modified="false" />The name of the transaction to roll back, or the savepoint to which to roll back. </param>
  206. </Docs>
  207. <AssemblyInfo>
  208. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  209. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  210. </AssemblyInfo>
  211. </Member>
  212. <Member MemberName="Save">
  213. <MemberSignature Language="C#" Value="public void Save (string savePointName);" />
  214. <MemberType>Method</MemberType>
  215. <ReturnValue>
  216. <ReturnType>System.Void</ReturnType>
  217. </ReturnValue>
  218. <Parameters>
  219. <Parameter Name="savePointName" Type="System.String" />
  220. </Parameters>
  221. <Docs>
  222. <remarks>
  223. <attribution license="cc4" from="Microsoft" modified="false" />
  224. <para>
  225. <see cref="M:System.Data.SqlClient.SqlTransaction.Save(System.String)" /> method is equivalent to the Transact-SQL SAVE TRANSACTION statement. </para>
  226. <para>The value used in the <paramref name="savePoint" /> parameter can be the same value used in the <paramref name="transactionName" /> parameter of some implementations of the <see cref="M:System.Data.SqlClient.SqlConnection.BeginTransaction" /> method.</para>
  227. <para>Savepoints offer a mechanism to roll back parts of transactions. You create a savepoint using the <see cref="M:System.Data.SqlClient.SqlTransaction.Save(System.String)" /> method, and then later call the <see cref="M:System.Data.SqlClient.SqlTransaction.Rollback" /> method to roll back to the savepoint instead of rolling back to the start of the transaction. </para>
  228. </remarks>
  229. <summary>
  230. <attribution license="cc4" from="Microsoft" modified="false" />
  231. <para>Creates a savepoint in the transaction that can be used to roll back a part of the transaction, and specifies the savepoint name.</para>
  232. </summary>
  233. <param name="savePointName">
  234. <attribution license="cc4" from="Microsoft" modified="false" />The name of the savepoint. </param>
  235. </Docs>
  236. <AssemblyInfo>
  237. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  238. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  239. </AssemblyInfo>
  240. </Member>
  241. <Member MemberName="System.Data.IDbTransaction.Connection">
  242. <MemberSignature Language="C#" Value="System.Data.IDbConnection System.Data.IDbTransaction.Connection { get; }" />
  243. <MemberType>Property</MemberType>
  244. <AssemblyInfo>
  245. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  246. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  247. </AssemblyInfo>
  248. <ReturnValue>
  249. <ReturnType>System.Data.IDbConnection</ReturnType>
  250. </ReturnValue>
  251. <Docs>
  252. <value>To be added.</value>
  253. <remarks>To be added.</remarks>
  254. <summary>
  255. <attribution license="cc4" from="Microsoft" modified="false" />
  256. <para>For a description of this member, see <see cref="P:System.Data.IDbTransaction.Connection" />.</para>
  257. </summary>
  258. </Docs>
  259. </Member>
  260. </Members>
  261. </Type>