ModelBusAdapterManager Class
The ModelBusAdapterManager is used to create instances of the supported ModelBusAdapter, and manage their lifetime. Derive from this class to create a ModelBusAdapterManager for your own DSL.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapterManager
Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingAdapterManager
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
'Declaration
Public MustInherit Class ModelBusAdapterManager _
Implements IDisposable
public abstract class ModelBusAdapterManager : IDisposable
public ref class ModelBusAdapterManager abstract : IDisposable
[<AbstractClass>]
type ModelBusAdapterManager =
class
interface IDisposable
end
public abstract class ModelBusAdapterManager implements IDisposable
The ModelBusAdapterManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModelBusAdapterManager |
Top
Properties
Name | Description | |
---|---|---|
Disposed | True if this ModelBusAdapterManager instance has been disposed, false otherwise. | |
ModelBus | Gets the Backplane instance that this ModelBusAdapterManager is registered with. |
Top
Methods
Name | Description | |
---|---|---|
CanCreateReference | Can this ModelBusAdapter manager create a scope described by the given contextual information about a model? | |
CreateAdapter(ModelBusReference) | Create a ModelBusAdapter wrapping the specified model. Throws an exception if the ModelBusAdapter cannot be created. | |
CreateAdapter(ModelBusReference, IServiceProvider) | Create a ModelBusAdapter instance supported by this ModelBusAdapterManager. | |
CreateReference | Attempts to create and return a model bus reference from the supplied data. | |
DeserializeAdapterReference | Attempt to deserialize the supplied adapter reference, with the help of the reference context. | |
Dispose() | ||
Dispose(Boolean) | Dispose this ModelBusAdapterManager instance. | |
DoCreateAdapter | Actual creation of the ModelBusAdapter instance supported by this ModelBusAdapterManager. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Destructor. (Overrides Object.Finalize().) | |
GetExposedElementTypes | Get a collection of all the ModelElement types which are exposed by any ModelBusAdapter managed by this adapter manager, and thus can be referenced from the outside, along with their display name; | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSupportedLogicalAdapterIds | Returns the IDs of the adapter types that are supported by this adapter manager | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetView | Obtains the View, for example a diagram, associated with the ModelBusAdapter passed as a parameter. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SerializeAdapterReference | Serializes the supplied adapter reference and returns it as a string | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryCreateReference | The ModelBusAdapterManager will attempt to create a model bus reference to a model from the supplied information. | |
ValidateReference | Validates the reference and set the LastStatus accordingly. The default implementation is to create an adapter in order to check if model can be resolved or not. |
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.