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

'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

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