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

public T ResolveElementReference<T>(
    ModelBusReference modelBusReference
)
where T : class
public:
generic<typename T>
where T : ref class
T ResolveElementReference(
    ModelBusReference^ modelBusReference
)
member ResolveElementReference<'T when 'T : not struct> : 
        modelBusReference:ModelBusReference -> 'T
Public Function ResolveElementReference(Of T As Class) (
    modelBusReference As ModelBusReference
) As T

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

Type Parameters

  • T
    Expected type

See Also

ResolveElementReference Overload
ModelBusAdapter Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top