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)

public protected:
virtual ModelBusView^ GetView(
	ModelBusAdapter^ viewOwner,
	ModelBusReference^ viewReference
) override

Parameters

viewOwner
Type: Microsoft.VisualStudio.Modeling.Integration::ModelBusAdapter^

ModelBusAdapter to which the View belongs

viewReference
Type: Microsoft.VisualStudio.Modeling.Integration::ModelBusReference^

Fully qualified reference to the view being requested

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration::ModelBusView^

An instance of the View associated with the ModelBusAdapter

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.

Return to top
Show: