ModelingAdapter Class
Wraps a domain-specific language model. Derive from this class to create an adapter for your DSL.
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
Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter
Syntax
public abstract class ModelingAdapter : ModelBusAdapter
public ref class ModelingAdapter abstract : ModelBusAdapter
[<AbstractClass>]
type ModelingAdapter =
class
inherit ModelBusAdapter
end
Public MustInherit Class ModelingAdapter
Inherits ModelBusAdapter
Constructors
Name | Description | |
---|---|---|
ModelingAdapter(ModelBusReference, ModelBusAdapterManager) | Constructor |
|
ModelingAdapter(ModelBusReference, ModelBusAdapterManager, ModelingDocumentHandler) | Constructor |
Properties
Name | Description | |
---|---|---|
AdapterManager | ModelBusAdapterManager instance that creates this ModelBusAdapter instance.(Inherited from ModelBusAdapter.) |
|
DisplayName | The display name of the ModelBusAdapter(Inherited from ModelBusAdapter.) |
|
Disposed | True if this ModelBusAdapter instance has been disposed, false otherwise.(Inherited from ModelBusAdapter.) |
|
DocumentHandler | ModelingDocumentHandler used by this ModelingAdapter. The DocumentHandler is used by the ModelBusAdapter to configure the model wrapped by it. You can set this property only if it has not been set already. |
|
Reference | (Inherited from ModelBusAdapter.) |
Methods
Name | Description | |
---|---|---|
Dispose() | (Inherited from ModelBusAdapter.) |
|
Dispose(Boolean) | Clean-up this ModelBusAdapter instance. Triggers a dispose of the DocumentHandler, if it has one.(Overrides ModelBusAdapter.Dispose(Boolean).) |
|
Equals(ModelBusAdapter) | True if this ModelBusAdapter is the same as the given ModelBusAdapter instance, false otherwise.(Inherited from ModelBusAdapter.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | Destructor.(Inherited from ModelBusAdapter.) |
|
GetDefaultView() | Obtains the DefaultView associated with this Model, if one is available.(Inherited from ModelBusAdapter.) |
|
GetElementReference(Object) | Get the reference of a given object instance supposed to be exposed by this adapter.(Inherited from ModelBusAdapter.) |
|
GetElementReferences(Type) | Get back all referenced objects that conform to a given data contract.(Inherited from ModelBusAdapter.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetReferences(Type) | (Inherited from ModelBusAdapter.) |
|
GetReferenceStatus() | Returns the ReferenceStatus for the current reference. If this is an element reference then tries ResolveElementReference.(Inherited from ModelBusAdapter.) |
|
GetType() | (Inherited from Object.) |
|
GetView(ModelBusReference) | Gets a specific view associated with this Model based on the ModelBusView reference(Inherited from ModelBusAdapter.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ResolveElementReference(ModelBusReference) | Given an identifier for an Element, returns the actual object represented by this reference.(Inherited from ModelBusAdapter.) |
|
ToString() | (Inherited from Object.) |
|
TrySetDocumentHandler(ModelingDocumentHandler) | If the ModelingDocumentHandler is not already set (by the constructor for e.g.), then sets it to the value passed as a parameter. Otherwise, returns false. |
Remarks
Create an adapter on a specified model using an instance of IModelBus.
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