Partager via


IModelBus.CreateAdapter Method (ModelBusReference)

 

Attempts to create and return a new adapter instance for the supplied reference, which can be a model reference or a model element reference.

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

Syntax

ModelBusAdapter CreateAdapter(
    ModelBusReference reference
)
ModelBusAdapter^ CreateAdapter(
    ModelBusReference^ reference
)
abstract CreateAdapter : 
        reference:ModelBusReference -> ModelBusAdapter
Function CreateAdapter (
    reference As ModelBusReference
) As ModelBusAdapter

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter

The adapter that was created, or null if one could not be created

Remarks

This method will throw an exception if an Adapter cannot be created. This might happen if an AdapterManager that can handle this reference is not found, or if the reference is invalid.

See Also

CreateAdapter Overload
IModelBus Interface
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top