ModelingDocStore Class

Represents a model's in-memory elements and links.

This API is not CLS-compliant. 

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Shell.ModelingDocStore

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class ModelingDocStore _
    Implements IDisposable
[CLSCompliantAttribute(false)]
public class ModelingDocStore : IDisposable
[CLSCompliantAttribute(false)]
public ref class ModelingDocStore : IDisposable
[<CLSCompliantAttribute(false)>]
type ModelingDocStore =  
    class 
        interface IDisposable 
    end
public class ModelingDocStore implements IDisposable

The ModelingDocStore type exposes the following members.

Constructors

  Name Description
Public method ModelingDocStore Initializes an instance of the ModelingDocStore class.

Top

Properties

  Name Description
Protected property CanRefreshPropertyBrowser Gets the modeling document store and verifies whether the property window should automatically refresh.
Public property Context Gets the context for the store.
Public property ModelingDocuments Gets the collection of models that are sharing the store.
Protected property ServiceProvider Gets the service provider that retrieves Visual Studio shell services.
Public property ShareCount Gets the flag that indicates whether multiple models share the store.
Protected property ShouldDisposeStore Gets the modeling document store and verifies whether the store should be disposed.
Public property Store Gets the store for the model.
Public property UndoManager Gets the UndoManager for the store.

Top

Methods

  Name Description
Public method CanCommit Gets the modeling document store and verifies whether the top-level transaction can be committed.
Public method CanUndoRedo Gets the modeling document store and verifies whether a transaction can be undone or redone.
Public method ConnectDocData Creates a connection between the store and the model.
Protected method CreateUndoUnit Creates an instance of the UndoUnit class, which enables transactions to be undone in the store.
Public method Dispose() Releases all resources used by the current instance of the ModelingDocStore class.
Protected method Dispose(Boolean) Releases the unmanaged resources that the ModelingDocStore used and optionally releases the managed resources.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method FlushUndoManager Clears the transactions that the store maintained.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes the store for the model.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveDocData Removes the connection between the store and the model.
Public method SetEncoding Sets the encoding for each doc data linked to the store
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member ModelingDocStoreKey Key that indexes the store in the store's property bag.

Top

Remarks

This class maintains a 1-1 relationship with the store.

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

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace