ModelBusAdapter Class
A ModelBusAdapter is an object that serves as a bridge between the ModelBus and the underlying model. ModelBusAdapter instances are created by ModelBusAdapterManager, and the operations a ModelBusAdapter exposes are defined by the ModelBusAdapter contract of the ModelBusAdapterManager.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
Microsoft.VisualStudio.Modeling.Integration.ModelingAdapter
Syntax
public abstract class ModelBusAdapter : IEquatable<ModelBusAdapter>,
IDisposable
public ref class ModelBusAdapter abstract : IEquatable<ModelBusAdapter^>,
IDisposable
[<AbstractClass>]
type ModelBusAdapter =
class
interface IEquatable<ModelBusAdapter>
interface IDisposable
end
Public MustInherit Class ModelBusAdapter
Implements IEquatable(Of ModelBusAdapter), IDisposable
Constructors
Name | Description | |
---|---|---|
ModelBusAdapter(ModelBusReference, ModelBusAdapterManager) | Constructor |
Properties
Name | Description | |
---|---|---|
AdapterManager | ModelBusAdapterManager instance that creates this ModelBusAdapter instance. |
|
DisplayName | The display name of the ModelBusAdapter |
|
Disposed | True if this ModelBusAdapter instance has been disposed, false otherwise. |
|
Reference |
Methods
Name | Description | |
---|---|---|
Dispose() | ||
Dispose(Boolean) | Dispose this ModelBusAdapter instance. The base class does nothing. Derived ModelBusAdapter implementations can choose to do additional work, including persist unsaved data, free up resources, etc. |
|
Equals(ModelBusAdapter) | True if this ModelBusAdapter is the same as the given ModelBusAdapter instance, false otherwise. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | Destructor.(Overrides Object.Finalize().) |
|
GetDefaultView() | Obtains the DefaultView associated with this Model, if one is available. |
|
GetElementReference(Object) | Get the reference of a given object instance supposed to be exposed by this adapter. |
|
GetElementReferences(Type) | Get back all referenced objects that conform to a given data contract. |
|
GetHashCode() | (Inherited from Object.) |
|
GetReferences(Type) | ||
GetReferenceStatus() | Returns the ReferenceStatus for the current reference. If this is an element reference then tries ResolveElementReference. |
|
GetType() | (Inherited from Object.) |
|
GetView(ModelBusReference) | Gets a specific view associated with this Model based on the ModelBusView reference |
|
MemberwiseClone() | (Inherited from Object.) |
|
ResolveElementReference(ModelBusReference) | Given an identifier for an Element, returns the actual object represented by this reference. |
|
ResolveElementReference<T>(ModelBusReference) | Given an identifier for an Element, returns the actual object represented by this reference (strong typed helper method) |
|
ToString() | (Inherited from Object.) |
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.
See Also
Microsoft.VisualStudio.Modeling.Integration Namespace
Return to top