LinkedTransaction Constructor (String, IServiceProvider, ModelingDocData)
Initializes a new instance of the LinkedTransaction class.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
'Declaration
Public Sub New ( _
description As String, _
serviceProvider As IServiceProvider, _
docData As ModelingDocData _
)
public LinkedTransaction(
string description,
IServiceProvider serviceProvider,
ModelingDocData docData
)
public:
LinkedTransaction(
String^ description,
IServiceProvider^ serviceProvider,
ModelingDocData^ docData
)
new :
description:string *
serviceProvider:IServiceProvider *
docData:ModelingDocData -> LinkedTransaction
public function LinkedTransaction(
description : String,
serviceProvider : IServiceProvider,
docData : ModelingDocData
)
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.
When the LinkedTransaction class is initialized, this method first opens a linked undo transaction, and then the method opens an IMS transaction.
- 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.