ModelBusAdapterManager.CreateReference Method

Attempts to create and return a model bus reference from the supplied data.

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 MustOverride Function CreateReference ( _
    ParamArray modelLocatorInfo As Object() _
) As ModelBusReference
public abstract ModelBusReference CreateReference(
    params Object[] modelLocatorInfo
)
public:
virtual ModelBusReference^ CreateReference(
    ... array<Object^>^ modelLocatorInfo
) abstract
abstract CreateReference : 
        modelLocatorInfo:Object[] -> ModelBusReference
public abstract function CreateReference(
    ... modelLocatorInfo : Object[]
) : ModelBusReference

Parameters

  • modelLocatorInfo
    Type: array<Object[]

    File path, EnvDTE.ProjecItem, or other model location information recognized by the adapter manager.

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
A new model bus reference, or null.

Remarks

This method may throw exceptions if a model bus reference could not be created.

.NET Framework Security

See Also

Reference

ModelBusAdapterManager Class

Microsoft.VisualStudio.Modeling.Integration Namespace