ModelBusAdapter.GetElementReference Method (Object)

 

Get the reference of a given object instance supposed to be exposed by this adapter.

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

Syntax

public abstract ModelBusReference GetElementReference(
    object element
)
public:
virtual ModelBusReference^ GetElementReference(
    Object^ element
) abstract
abstract GetElementReference : 
        element:Object -> ModelBusReference
Public MustOverride Function GetElementReference (
    element As Object
) As ModelBusReference

Parameters

  • element
    Type: System.Object

    Element for which the Model bus reference should returned. Should not be <c>null</c>

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference

A reference on the exposed element passed as a parameter if it is managed by this adapter

Remarks

If </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>element</w:t></w:r><w:r><w:t> is <c>null</c>, an ArgumentNullExceptionArgumentNullException is thrown. If </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>element</w:t></w:r><w:r><w:t> element does not belong to the objects managed by this adapter, an ArgumentExceptionArgumentException is thrown

See Also

ModelBusAdapter Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top