Share via


ModelBusAdapter.ResolveElementReference<T> Method (ModelBusReference)

Given an identifier for an Element, returns the actual object represented by this reference (strong typed helper method)

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

Syntax

'Declaration
Public Function ResolveElementReference(Of T As Class) ( _
    modelBusReference As ModelBusReference _
) As T
public T ResolveElementReference<T>(
    ModelBusReference modelBusReference
)
where T : class
public:
generic<typename T>
where T : ref class
T ResolveElementReference(
    ModelBusReference^ modelBusReference
)
member ResolveElementReference : 
        modelBusReference:ModelBusReference -> 'T  when 'T : not struct
JScript does not support generic types or methods.

Type Parameters

  • T
    Expected type

Parameters

Return Value

Type: T
Instance of the resolved element object of type T. Or <c>null</c>if the requested type is not supported by the adapter

.NET Framework Security

See Also

Reference

ModelBusAdapter Class

ResolveElementReference Overload

Microsoft.VisualStudio.Modeling.Integration Namespace