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 | |
---|---|---|
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(String, ReferenceContext) | Deserializes the supplied string and returns a ModelBusReference. |
|
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. |
|
GetAdapterManager(String) | Locate a ModelBusAdapterManager instance using its ID. Throws an exception if not found. |
|
GetService(Type) | (Inherited from IServiceProvider.) |
|
LogError(ErrorCategory, String) | Logs an error message. |
|
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. |
|
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