Share via


IModelBus Interface

 

Obtain an instance of this type from a service provider and use it to obtain an adapter that can be used to open another model.

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

Syntax

public interface IModelBus : IServiceProvider
public interface class IModelBus : IServiceProvider
type IModelBus = 
    interface
        interface IServiceProvider
    end
Public Interface IModelBus
    Inherits IServiceProvider

Methods

Name Description
System_CAPS_pubmethod CreateAdapter(ModelBusReference)

Attempts to create and return a new adapter instance for the supplied reference, which can be a model reference or a model element reference.

System_CAPS_pubmethod CreateAdapter(ModelBusReference, IServiceProvider)

Attempts to create and return a new adapter instance for the supplied reference. Allows a service provider to be supplied.

System_CAPS_pubmethod DeserializeReference(String, ReferenceContext)

Deserializes the supplied string and returns a ModelBusReference.

System_CAPS_pubmethod FindAdapterManagers(Object[])

Returns a list of ModelBusAdapter managers that can create ModelBusReferences to the specified object. The location information can be in any form that can be recognized by an available adapter manager, such as the file path of a DSL model file.

System_CAPS_pubmethod GetAdapterManager(String)

Locate a ModelBusAdapterManager instance using its ID. Throws an exception if not found.

System_CAPS_pubmethod GetService(Type)

(Inherited from IServiceProvider.)

System_CAPS_pubmethod LogError(ErrorCategory, String)

Logs an error message.

System_CAPS_pubmethod SerializeReference(ModelBusReference)

Serializes the supplied reference to a string that can be persisted by the caller. If there is ReferenceContext information attached to the reference, you will have to provide equivalent context information when the string is deserialized.

System_CAPS_pubmethod ValidateReference(ModelBusReference, ValidateReferenceOption)

Validates a given reference using the corresponding adapter. This method should update the LastStatus of a reference in addition to returning it.

Remarks

For more information, see Integrating Models by using Visual Studio Modelbus.

See Also

Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top