Share via


ModelBusAdapterManager.TryCreateReference Method (ModelBusReference, Object[])

 

The ModelBusAdapterManager will attempt to create a model bus reference to a model from the supplied information.

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

Syntax

public bool TryCreateReference(
    out ModelBusReference reference,
    params object[] modelLocatorInfo
)
public:
bool TryCreateReference(
    [OutAttribute] ModelBusReference^% reference,
    ... array<Object^>^ modelLocatorInfo
)
member TryCreateReference : 
        reference:ModelBusReference byref *
        [<ParamArrayAttribute>] modelLocatorInfo:Object[] -> bool
Public Function TryCreateReference (
    <OutAttribute> ByRef reference As ModelBusReference,
    ParamArray modelLocatorInfo As Object()
) As Boolean

Parameters

  • modelLocatorInfo
    Type: System.Object[]

    ReferenceContext provided to describe the desired model.

Return Value

Type: System.Boolean

A flag indicating success or failure

Remarks

This method will not throw an exception if a model bus reference could not be created.

See Also

ModelBusAdapterManager Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top