Share via


VsModelingAdapterManager.GetView Method

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

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

Syntax

'Declaration
Protected Friend Overrides Function GetView ( _
    viewOwner As ModelBusAdapter, _
    viewReference As ModelBusReference _
) As ModelBusView
protected internal override ModelBusView GetView(
    ModelBusAdapter viewOwner,
    ModelBusReference viewReference
)
protected public:
virtual ModelBusView^ GetView(
    ModelBusAdapter^ viewOwner, 
    ModelBusReference^ viewReference
) override
abstract GetView : 
        viewOwner:ModelBusAdapter * 
        viewReference:ModelBusReference -> ModelBusView  
override GetView : 
        viewOwner:ModelBusAdapter * 
        viewReference:ModelBusReference -> ModelBusView
override function GetView(
    viewOwner : ModelBusAdapter, 
    viewReference : ModelBusReference
) : 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.

.NET Framework Security

See Also

Reference

VsModelingAdapterManager Class

Microsoft.VisualStudio.Modeling.Integration.Shell Namespace