Share via


ModelBusAdapterManager.TryCreateReference Method

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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll)

Syntax

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

Parameters

  • modelLocatorInfo
    Type: array<Object[]

    ReferenceContext provided to describe the desired model.

Return Value

Type: Boolean
A flag indicating success or failure

Remarks

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

.NET Framework Security

See Also

Reference

ModelBusAdapterManager Class

Microsoft.VisualStudio.Modeling.Integration Namespace