Share via


VsModelingAdapterManager Class

 

ModelBusAdapterManager that can handle creation and management of Adapters representing DSL based Model files inside Visual Studio. It provides with ModelBusAdapter life-cycle management and appropriate behavior to support saving changes to underlying referenced models using the VS Shell.

Namespace:   Microsoft.VisualStudio.Modeling.Integration.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapterManager
    Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingAdapterManager

Syntax

[CLSCompliantAttribute(false)]
public abstract class VsModelingAdapterManager : ModelBusAdapterManager
[CLSCompliantAttribute(false)]
public ref class VsModelingAdapterManager abstract : ModelBusAdapterManager
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type VsModelingAdapterManager = 
    class
        inherit ModelBusAdapterManager
    end
<CLSCompliantAttribute(False)>
Public MustInherit Class VsModelingAdapterManager
    Inherits ModelBusAdapterManager

Constructors

Name Description
System_CAPS_protmethod VsModelingAdapterManager()

Properties

Name Description
System_CAPS_pubproperty Disposed

True if this ModelBusAdapterManager instance has been disposed, false otherwise.(Inherited from ModelBusAdapterManager.)

System_CAPS_pubproperty ModelBus

Gets the Backplane instance that this ModelBusAdapterManager is registered with.(Inherited from ModelBusAdapterManager.)

Methods

Name Description
System_CAPS_pubmethod CanCreateReference(Object[])

Can this ModelBusAdapter manager create a scope described by the given contextual information about a model?(Inherited from ModelBusAdapterManager.)

System_CAPS_protmethod CheckCanCreateAdapter(ModelBusReference)

Checks if an ModelingAdapterReference can be successfully created from this ModelBusReference and also if the LogicalAdapterId is recognized by this ModelBusAdapterManager. This method should throw an appropriate exception if a ModelBusAdapter cannot potentially be created using this ModelBusReference.

System_CAPS_pubmethod CreateAdapter(ModelBusReference)

Create a ModelBusAdapter wrapping the specified model. Throws an exception if the ModelBusAdapter cannot be created.(Inherited from ModelBusAdapterManager.)

System_CAPS_pubmethod CreateAdapter(ModelBusReference, IServiceProvider)

Create a ModelBusAdapter instance supported by this ModelBusAdapterManager.(Inherited from ModelBusAdapterManager.)

System_CAPS_protmethod CreateModelingAdapterInstance(ModelBusReference, ModelElement)

Imlementations should provide a ModelingAdapter instance that serves the Model's external world view using the DomainModelRoot element passed.

System_CAPS_pubmethod CreateReference(Object[])

Attempts to create and return a model bus reference from the supplied data.(Inherited from ModelBusAdapterManager.)

System_CAPS_protmethod DeserializeAdapterReference(String, ReferenceContext)

(Overrides ModelBusAdapterManager.DeserializeAdapterReference(String, ReferenceContext).)

System_CAPS_pubmethod Dispose()

(Inherited from ModelBusAdapterManager.)

System_CAPS_protmethod Dispose(Boolean)

Dispose this ModelBusAdapterManager instance.(Inherited from ModelBusAdapterManager.)

System_CAPS_protmethod DoCreateAdapter(ModelBusReference, IServiceProvider)

Using the ModelBusReference passed as a parameter, creation of a ModelBusAdapter instance is attempted. If successful, the adapter is returned. If not, appropriate exception is thrown.(Overrides ModelBusAdapterManager.DoCreateAdapter(ModelBusReference, IServiceProvider).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Destructor.(Inherited from ModelBusAdapterManager.)

System_CAPS_pubmethod GetExposedElementTypes(String)

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;(Inherited from ModelBusAdapterManager.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSupportedLogicalAdapterIds()

Returns the IDs of the adapter types that are supported by this adapter manager(Inherited from ModelBusAdapterManager.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetView(ModelBusAdapter, ModelBusReference)

Obtains the View associated with the ModelBusAdapter passed as a parameter.(Overrides ModelBusAdapterManager.GetView(ModelBusAdapter, ModelBusReference).)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod SerializeAdapterReference(ModelBusAdapterReference, ReferenceContext)

(Overrides ModelBusAdapterManager.SerializeAdapterReference(ModelBusAdapterReference, ReferenceContext).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryCreateReference(ModelBusReference, Object[])

The ModelBusAdapterManager will attempt to create a model bus reference to a model from the supplied information.(Inherited from ModelBusAdapterManager.)

System_CAPS_pubmethod ValidateReference(ModelBusReference, ValidateReferenceOption)

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.(Inherited from ModelBusAdapterManager.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static HostName

Name used by VisualStudio to identify itself as a ModelBus host.

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.Shell Namespace

Return to top