Share via


SqlCeTransaction.Connection Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the SqlCeConnection object associated with the transaction, or a null reference (Nothing in Visual Basic) if the transaction is no longer valid.

  [Visual Basic]
  Public ReadOnly Property Connection As SqlCeConnection
[C#]
public SqlCeConnection Connection {get;}
[C++]
public: __property SqlCeConnection* get_Connection();
[JScript]
public function get Connection() : SqlCeConnection;

Property Value

The SqlCeConnection object associated with the transaction.

Remarks

A single application may have multiple SQL Server CE database connections, each with zero or one transaction. There may only be one connection per given database file. This property enables you to determine the connection object associated with a particular transaction created by BeginTransaction.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeTransaction Class | SqlCeTransaction Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.