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


Public Interface IModelBus _
    Inherits IServiceProvider
public interface IModelBus : IServiceProvider
public interface class IModelBus : IServiceProvider
type IModelBus =  
        interface IServiceProvider 
public interface IModelBus extends IServiceProvider

The IModelBus type exposes the following members.


  Name Description
Public method 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.
Public method CreateAdapter(ModelBusReference, IServiceProvider) Attempts to create and return a new adapter instance for the supplied reference. Allows a service provider to be supplied.
Public method DeserializeReference Deserializes the supplied string and returns a ModelBusReference.
Public method FindAdapterManagers 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.
Public method GetAdapterManager Locate a ModelBusAdapterManager instance using its ID. Throws an exception if not found.
Public method GetService Gets the service object of the specified type. (Inherited from IServiceProvider.)
Public method LogError Logs an error message.
Public method SerializeReference 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.
Public method ValidateReference Validates a given reference using the corresponding adapter. This method should update the LastStatus of a reference in addition to returning it.



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

See Also


Microsoft.VisualStudio.Modeling.Integration Namespace