Share via


ModelBus.CreateAdapter Method (ModelBusReference, IServiceProvider)

 

Implements CreateAdapter method

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

Syntax

public ModelBusAdapter CreateAdapter(
    ModelBusReference reference,
    IServiceProvider serviceProvider
)
public:
virtual ModelBusAdapter^ CreateAdapter(
    ModelBusReference^ reference,
    IServiceProvider^ serviceProvider
) sealed
abstract CreateAdapter : 
        reference:ModelBusReference *
        serviceProvider:IServiceProvider -> ModelBusAdapter
override CreateAdapter : 
        reference:ModelBusReference *
        serviceProvider:IServiceProvider -> ModelBusAdapter
Public Function CreateAdapter (
    reference As ModelBusReference,
    serviceProvider As IServiceProvider
) As ModelBusAdapter

Parameters

  • adapter
    The adapter, if created successfully

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter

The adapter that was created, or throws an exception if it could not be created.

Implements

IModelBus.CreateAdapter(ModelBusReference, IServiceProvider)

See Also

CreateAdapter Overload
ModelBus Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top