Share via


ModelBus.CreateAdapter Method (ModelBusReference, IServiceProvider)

Implements CreateAdapter method

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

Syntax

'Declaration
Public Function CreateAdapter ( _
    reference As ModelBusReference, _
    serviceProvider As IServiceProvider _
) As ModelBusAdapter
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 final function CreateAdapter(
    reference : ModelBusReference, 
    serviceProvider : IServiceProvider
) : ModelBusAdapter

Parameters

  • serviceProvider
    Type: IServiceProvider

    A service provider to pass on to the adapter. Can be null.

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)

.NET Framework Security

See Also

Reference

ModelBus Class

CreateAdapter Overload

Microsoft.VisualStudio.Modeling.Integration Namespace