Share via


VsTextTemplatingModelingAdapterManager.DoCreateAdapter Method

Creates a ModelBusAdapter from a ModelBusReference.

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

Syntax

'Declaration
Protected Overrides Function DoCreateAdapter ( _
    reference As ModelBusReference, _
    serviceProvider As IServiceProvider _
) As ModelBusAdapter
protected override ModelBusAdapter DoCreateAdapter(
    ModelBusReference reference,
    IServiceProvider serviceProvider
)
protected:
virtual ModelBusAdapter^ DoCreateAdapter(
    ModelBusReference^ reference, 
    IServiceProvider^ serviceProvider
) override
abstract DoCreateAdapter : 
        reference:ModelBusReference * 
        serviceProvider:IServiceProvider -> ModelBusAdapter 
override DoCreateAdapter : 
        reference:ModelBusReference * 
        serviceProvider:IServiceProvider -> ModelBusAdapter 
protected override function DoCreateAdapter(
    reference : ModelBusReference, 
    serviceProvider : IServiceProvider
) : 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.

.NET Framework Security

See Also

Reference

VsTextTemplatingModelingAdapterManager Class

Microsoft.VisualStudio.TextTemplating.Modeling Namespace