ModelBus Class
ModelBus allows tools to interoperate in a loosely coupled fashion.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Integration.ModelBus
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
'宣告
Public Class ModelBus _
Implements IModelBus, SModelBus, IServiceProvider, IDisposable
public class ModelBus : IModelBus, SModelBus,
IServiceProvider, IDisposable
public ref class ModelBus : IModelBus,
SModelBus, IServiceProvider, IDisposable
type ModelBus =
class
interface IModelBus
interface SModelBus
interface IServiceProvider
interface IDisposable
end
public class ModelBus implements IModelBus, SModelBus, IServiceProvider, IDisposable
The ModelBus type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModelBus |
Top
Properties
Name | Description | |
---|---|---|
Disposed | True if this Moldebus instance has been disposed, false otherwise. | |
ErrorCallback | Delegate supplied by the host. Used to log errors. |
Top
Methods
Name | Description | |
---|---|---|
CreateAdapter(ModelBusReference) | Implements CreateAdapter() method | |
CreateAdapter(ModelBusReference, IServiceProvider) | Implements CreateAdapter() method | |
DeserializeReference | Deserializes the supplied string and returns a ModelBusReference. | |
Dispose() | ||
Dispose(Boolean) | Dispose this ModelBus instance. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Destructor. (Overrides Object.Finalize().) | |
FindAdapterManagers | Finds the list of ModelBusAdapter managers whose ModelBusAdapter scopes are described by the given context information. There may be multiple ModelBusAdapter managers that can work with the model, for example a .xml file can be opened by XML editor or Text editor. | |
GetAdapterManager | Locate a ModelBusAdapterManager instance using its Id. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRegisteredAdapterManagers<T> | Get the set of loaded, registered adapter managers of type T | |
GetService | Returns Adapters provided by the ModeBus or by its host. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LogError | Logs an error | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SerializeReference | Serializes the supplied reference to a string that can be persisted by the caller. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ValidateReference | Validates a given reference using the corresponding adapter. This method updates the LastStatus of a reference in addition to returning it. |
Top
Remarks
For more information, see Integrating Models by using Visual Studio Modelbus.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.