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)

public ModelBusAdapter CreateAdapter(
	ModelBusReference reference,
	IServiceProvider serviceProvider
)

Parameters

reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference

A reference to a model

serviceProvider
Type: System.IServiceProvider

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

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.

Return to top
Show: