TransactionManager.BeginTransaction Method (String, Boolean)
Creates a new transaction object with a given name and returns a reference to it.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Function BeginTransaction ( _
name As String, _
isSerializing As Boolean _
) As Transaction
public Transaction BeginTransaction(
string name,
bool isSerializing
)
public:
Transaction^ BeginTransaction(
String^ name,
bool isSerializing
)
member BeginTransaction :
name:string *
isSerializing:bool -> Transaction
public function BeginTransaction(
name : String,
isSerializing : boolean
) : Transaction
Parameters
name
Type: StringThe transaction name.
isSerializing
Type: BooleanDetermines the value of transaction.IsSerializing. true indicates that the model is being read from file. .
Return Value
Type: Microsoft.VisualStudio.Modeling.Transaction
A Transaction object.
Remarks
Use this version if you are writing a deserializer, and set isSerializing true to indicate that the store is being loaded from file. Many rules and event handlers inspect transaction.IsSerializing, and suppress their normal response while the store is being loaded.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.