Share via


VsTextTemplatingModelingAdapterManager.DoCreateAdapter Method (ModelBusReference, IServiceProvider)

 

Creates a ModelBusAdapter from a ModelBusReference.

Namespace:   Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)

Syntax

protected override ModelBusAdapter DoCreateAdapter(
    ModelBusReference reference,
    IServiceProvider serviceProvider
)
protected:
virtual ModelBusAdapter^ DoCreateAdapter(
    ModelBusReference^ reference,
    IServiceProvider^ serviceProvider
) override
override DoCreateAdapter : 
        reference:ModelBusReference *
        serviceProvider:IServiceProvider -> ModelBusAdapter
Protected Overrides Function DoCreateAdapter (
    reference As ModelBusReference,
    serviceProvider As IServiceProvider
) As ModelBusAdapter

Parameters

  • serviceProvider
    Type: System.IServiceProvider

    Service provider used to create an association between the caller and the referenced model.

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter

A new ModelBusAdapter instance.

See Also

VsTextTemplatingModelingAdapterManager Class
Microsoft.VisualStudio.TextTemplating.Modeling Namespace

Return to top