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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.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
viewOwner
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapterModelBusAdapter to which the View belongs
viewReference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReferenceFully qualified reference to the view being requested
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.