Share via


VsModelingAdapterManager.GetView Method (ModelBusAdapter, ModelBusReference)

 

Obtains the View associated with the ModelBusAdapter passed as a parameter.

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

Syntax

protected internal override ModelBusView GetView(
    ModelBusAdapter viewOwner,
    ModelBusReference viewReference
)
public protected:
virtual ModelBusView^ GetView(
    ModelBusAdapter^ viewOwner,
    ModelBusReference^ viewReference
) override
override GetView : 
        viewOwner:ModelBusAdapter *
        viewReference:ModelBusReference -> ModelBusView
Protected Friend Overrides Function GetView (
    viewOwner As ModelBusAdapter,
    viewReference As ModelBusReference
) As ModelBusView

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusView

An instance of the View associated with the ModelBusAdapter

Remarks

In order to create a View of desired type, the recommended API to call is adapter.GetView(ModelBusReference). If you are looking to override the implementation of GetView, please override the API defined in the ModelBusAdapter class. Default implementation will throw an exception if the viewOwner's AdapterReference and viewReference do not point to the same underlying Model.

See Also

VsModelingAdapterManager Class
Microsoft.VisualStudio.Modeling.Integration.Shell Namespace

Return to top