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
'Declaration
Public Interface IModelBus _
Inherits IServiceProvider
public interface IModelBus : IServiceProvider
public interface class IModelBus : IServiceProvider
type IModelBus =
interface
interface IServiceProvider
end
public interface IModelBus extends IServiceProvider
The IModelBus type exposes the following members.
Methods
Name | Description | |
---|---|---|
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. | |
CreateAdapter(ModelBusReference, IServiceProvider) | Attempts to create and return a new adapter instance for the supplied reference. Allows a service provider to be supplied. | |
DeserializeReference | Deserializes the supplied string and returns a ModelBusReference. | |
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. | |
GetAdapterManager | Locate a ModelBusAdapterManager instance using its ID. Throws an exception if not found. | |
GetService | Gets the service object of the specified type. (Inherited from IServiceProvider.) | |
LogError | Logs an error message. | |
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. | |
ValidateReference | Validates a given reference using the corresponding adapter. This method should update the LastStatus of a reference in addition to returning it. |
Top
Remarks
For more information, see Integrating Models by using Visual Studio Modelbus.