Initializes a new instance of the LinkedTransaction class.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Sub New ( _
description As String, _
serviceProvider As IServiceProvider, _
docData As ModelingDocData _
)
'使用
Dim description As String
Dim serviceProvider As IServiceProvider
Dim docData As ModelingDocData
Dim instance As New LinkedTransaction(description, _
serviceProvider, docData)
public LinkedTransaction(
string description,
IServiceProvider serviceProvider,
ModelingDocData docData
)
public:
LinkedTransaction(
String^ description,
IServiceProvider^ serviceProvider,
ModelingDocData^ docData
)
public function LinkedTransaction(
description : String,
serviceProvider : IServiceProvider,
docData : ModelingDocData
)
Parameters
description
Type: System.StringThe description that appears in the Undo/Redo list.
serviceProvider
Type: System.IServiceProviderThe service provider that is used to obtain the IVsLinkedUndoTransactionManager interface.
docData
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingDocDataThe document that initiated the linked transaction.
Remarks
When the LinkedTransaction class is initialized, this method first opens a linked undo transaction, and then the method opens an IMS transaction.
Permissions
- 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.