次の方法で共有


TransactionManager.BeginTransaction Method

Definition

Overloads

BeginTransaction()

Creates a new transaction object and returns a reference to it.

BeginTransaction(String)

Creates a new transaction object and returns a reference to it.

BeginTransaction(String, Boolean)

Creates a new transaction object and returns a reference to it.

BeginTransaction(String, Boolean, TransactionContext)

Creates a new transaction object and returns a reference to it.

BeginTransaction()

Creates a new transaction object and returns a reference to it.

public:
 Microsoft::VisualStudio::Modeling::Transaction ^ BeginTransaction();
public Microsoft.VisualStudio.Modeling.Transaction BeginTransaction ();
member this.BeginTransaction : unit -> Microsoft.VisualStudio.Modeling.Transaction
Public Function BeginTransaction () As Transaction

Returns

The Transaction object

Applies to

BeginTransaction(String)

Creates a new transaction object and returns a reference to it.

public:
 Microsoft::VisualStudio::Modeling::Transaction ^ BeginTransaction(System::String ^ name);
public Microsoft.VisualStudio.Modeling.Transaction BeginTransaction (string name);
member this.BeginTransaction : string -> Microsoft.VisualStudio.Modeling.Transaction
Public Function BeginTransaction (name As String) As Transaction

Parameters

name
String

The transaction's name

Returns

The Transaction object

Applies to

BeginTransaction(String, Boolean)

Creates a new transaction object and returns a reference to it.

public:
 Microsoft::VisualStudio::Modeling::Transaction ^ BeginTransaction(System::String ^ name, bool isSerializing);
public Microsoft.VisualStudio.Modeling.Transaction BeginTransaction (string name, bool isSerializing);
member this.BeginTransaction : string * bool -> Microsoft.VisualStudio.Modeling.Transaction
Public Function BeginTransaction (name As String, isSerializing As Boolean) As Transaction

Parameters

name
String

The transaction's name

isSerializing
Boolean

when true, the transaction will notify that deserialization is taking place

Returns

The Transaction object

Applies to

BeginTransaction(String, Boolean, TransactionContext)

Creates a new transaction object and returns a reference to it.

public:
 Microsoft::VisualStudio::Modeling::Transaction ^ BeginTransaction(System::String ^ name, bool isSerializing, Microsoft::VisualStudio::Modeling::TransactionContext ^ context);
public Microsoft.VisualStudio.Modeling.Transaction BeginTransaction (string name, bool isSerializing, Microsoft.VisualStudio.Modeling.TransactionContext context);
member this.BeginTransaction : string * bool * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.Transaction
Public Function BeginTransaction (name As String, isSerializing As Boolean, context As TransactionContext) As Transaction

Parameters

name
String

The transaction's name

isSerializing
Boolean

when true, the transaction will notify that deserialization is taking place

context
TransactionContext

context object that allows clients to append user data to the transaction

Returns

The Transaction object

Applies to