Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a document in the Store.
This API is not CLS-compliant.
Inheritance Hierarchy
System.Object
  System.MarshalByRefObject
    Microsoft.VisualStudio.Modeling.Shell.DocData
      Microsoft.VisualStudio.Modeling.Shell.ModelingDocData
Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public MustInherit Class ModelingDocData _
    Inherits DocData _
    Implements IVsTextBufferProvider, IServiceProvider, IVsHasRelatedSaveItems
[CLSCompliantAttribute(false)]
public abstract class ModelingDocData : DocData, 
    IVsTextBufferProvider, IServiceProvider, IVsHasRelatedSaveItems
[CLSCompliantAttribute(false)]
public ref class ModelingDocData abstract : public DocData, 
    IVsTextBufferProvider, IServiceProvider, IVsHasRelatedSaveItems
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type ModelingDocData =  
    class 
        inherit DocData 
        interface IVsTextBufferProvider 
        interface IServiceProvider 
        interface IVsHasRelatedSaveItems 
    end
public abstract class ModelingDocData extends DocData implements IVsTextBufferProvider, IServiceProvider, IVsHasRelatedSaveItems
The ModelingDocData type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | ModelingDocData | Initializes a new instance of the ModelingDocData class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Cookie | Gets the cookie that identifies the document in the Running Documents table. (Inherited from DocData.) | 
| .gif) | DocViews | Gets the collection of document views that are open for the document. (Inherited from DocData.) | 
| .gif) | Encoding | Gets or sets the encoding that persists the document. (Inherited from DocData.) | 
| .gif) | ErrorListProvider | Gets the error list provider for the document. | 
| .gif) | FileName | Gets the file name of the document. (Inherited from DocData.) | 
| .gif) | FormatList | Gets a list of formats. (Inherited from DocData.) | 
| .gif) | HasErrorListItems | Gets the error list and verifies whether errors and warnings for the document appear in the Error List window. | 
| .gif) | Hierarchy | Gets the project hierarchy to which the document belongs. (Inherited from DocData.) | 
| .gif) | InLoad | Gets the document and verifies whether it is being loaded into the modeling window. | 
| .gif) | InReload | Gets the document and verifies whether it is being reloaded into the modeling window. | 
| .gif) | IsBackupFileObsolete | (Inherited from DocData.) | 
| .gif) | IsLoaded | Gets the document and verifies whether it is loaded. (Inherited from DocData.) | 
| .gif) | ItemId | Gets the Item ID that is assigned to the document. (Inherited from DocData.) | 
| .gif) | ModelingDocStore | Gets the modeling designer store that is assigned to the document. | 
| .gif) | PartitionMapper | |
| .gif) | RelatedDocList | |
| .gif) | RootElement | Gets the root element in the document. | 
| .gif) | SerializedModel | |
| .gif) | ServiceProvider | Gets the service provider from the shell. (Inherited from DocData.) | 
| .gif) | Store | Gets the modeling designer store to which this document is assigned. | 
| .gif) | UndoManager | Gets the UndoManager class, which you can use to undo and redo operations in the modeling designer store. (Overrides DocData.UndoManager.) | 
| .gif) | UndoManagerIsShared | Gets the UndoManager class and verifies whether it is shared among documents. (Overrides DocData.UndoManagerIsShared.) | 
| .gif) | VSUndoManager | Gets the UndoManager interface. (Inherited from DocData.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddErrorListItem | Adds an error or warning message that you can use with the document. | 
| .gif) | BackupFile | Make a single file backup of this document. Returns whether the document is expected to re-load without data loss. (Inherited from DocData.) | 
| .gif) | CanSave | Verifies whether the user can cancel the save operation. (Inherited from DocData.) | 
| .gif) | CleanupStores | Clears the modeling designer stores before a document is reloaded into memory. | 
| .gif) | ClearErrorListItems | Clears the error and warning messages from the Error List window. | 
| .gif) | Close | Closes the document. (Inherited from DocData.) | 
| .gif) | CreateModelingDocStore | Creates a document for the modeling designer store. | 
| .gif) | CreateObject | Creates an object | 
| .gif) | CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | 
| .gif) | CreatePartitionMapper | Factory method to create the partition mapper responsible for mapping elements to the correct partitions of the store owned by this ModelingDocData when ElementGroupPrototypes are reconstituted. | 
| .gif) | CreateStore | Creates a modeling store. | 
| .gif) | CreateSubordinateDocData | Create a subordinate doc data instance | 
| .gif) | DirectoryChanged | Not currently implemented. (Inherited from DocData.) | 
| .gif) | Dispose | Releases the unmanaged resources used by the ModelingDocData and optionally releases the managed resources. (Overrides DocData.Dispose(Boolean).) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | FilesChanged | Notifies clients that one or more documents changed. (Inherited from DocData.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | FlushUndoManager | Clears the UndoManager class for the store. (Overrides DocData.FlushUndoManager().) | 
| .gif) | GetAllElementsForValidation | Get all elements for validation. The base implementation returns all elements in the store of this DocData. | 
| .gif) | GetClassID | Gets the GUID of the editor factory that created the document. (Inherited from DocData.) | 
| .gif) | GetCurFile | Gets the file name of the document. (Inherited from DocData.) | 
| .gif) | GetData | Gets the document data from a buffer. (Inherited from DocData.) | 
| .gif) | GetDomainModels | Gets a collection of types to be loaded into the store. | 
| .gif) | GetFormatList | Gets the list of supported document formats. (Inherited from DocData.) | 
| .gif) | GetGuidEditorType | Gets the GUID of the editor factory that created the IVsPersistDocData object. (Inherited from DocData.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
| .gif) | GetRelatedSaveTreeItems | Standard implementation of IVsHasRelatedSaveItems. If another DocData was registered using the IRelatedDocList interface with this instance, it will potentially be returned as a RelatedSaveTreeItem. | 
| .gif) | GetService | Serve up local services to the Store and users of the Stores service provider (Overrides DocData.GetService(Type).) | 
| .gif) | GetTextBuffer | Loads the serialized model into a new buffer. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | HandleLoadDocDataException | Manages any exceptions that were thrown when the document was loading. (Inherited from DocData.) | 
| .gif) | HandleSaveDocDataException | Manages any exceptions that were thrown when the document was saving. (Inherited from DocData.) | 
| .gif) | HideErrorListItems | Hides all error and warning messages that are in the Error List window. | 
| .gif) | IgnoreFileChanges | Determines whether changes to the document should be ignored. (Inherited from DocData.) | 
| .gif) | Initialize() | Initializes the ModelingDocData class. | 
| .gif) | Initialize(Store) | Initializes the modeling designer store for the document. | 
| .gif) | InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
| .gif) | InitNew | Initializes the document. (Inherited from DocData.) | 
| .gif) | IsDirty | Verifies whether the document has changed since the most recent save operation. (Inherited from DocData.) | 
| .gif) | IsDocDataDirty | Verifies whether the document has changed since the most recent save operation. (Inherited from DocData.) | 
| .gif) | IsDocDataReadOnly | Verifies whether the document is read-only. (Inherited from DocData.) | 
| .gif) | IsDocDataReloadable | Verifies whether the document can be reloaded. (Inherited from DocData.) | 
| .gif) | IsFlushUndoStackRequiredOnLoad | Override this method to specify if the undo stack is to be flushed after loading (opening, or creating) the docdata. | 
| .gif) | Load(String, Boolean) | Loads the document into memory. (Inherited from DocData.) | 
| .gif) | Load(String, UInt32, Int32) | Loads the document into memory. (Inherited from DocData.) | 
| .gif) | LoadDocData(String) | Loads the document by using its file name. (Inherited from DocData.) | 
| .gif) | LoadDocData(String, Boolean) | Loads a document that has a specific file name. (Overrides DocData.LoadDocData(String, Boolean).) | 
| .gif) | LockTextBuffer | Not implemented. | 
| .gif) | MarkDocumentChangedForBackup | Mark that the document has changed and thus a new backup should be created (Inherited from DocData.) | 
| .gif) | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | 
| .gif) | OnDocumentClosed | Called when the document is closed. Default behavior clears the error list content. (Overrides DocData.OnDocumentClosed(EventArgs).) | 
| .gif) | OnDocumentClosing | Alerts listeners that the document will be closed. (Inherited from DocData.) | 
| .gif) | OnDocumentLoaded | Alerts listeners that the document is loaded. (Inherited from DocData.) | 
| .gif) | OnDocumentLoading | Alerts listeners that the document will be loaded. (Inherited from DocData.) | 
| .gif) | OnDocumentReadOnlyChanged | Alerts listeners that the read-only state of the document has changed. (Inherited from DocData.) | 
| .gif) | OnDocumentReloaded | Alerts listeners that the document has been reloaded. (Inherited from DocData.) | 
| .gif) | OnDocumentReloading | Alerts listeners that the document will be reloaded. (Inherited from DocData.) | 
| .gif) | OnDocumentSaved | Alerts listeners that the document has been saved. (Inherited from DocData.) | 
| .gif) | OnDocumentSaving | Alerts listeners that the document will be saved. (Inherited from DocData.) | 
| .gif) | OnFileNameChanged | Alerts listeners that the file name of the document has changed. (Inherited from DocData.) | 
| .gif) | OnHierarchyChanged | Called when a document is added or renamed. (Overrides DocData.OnHierarchyChanged(EventArgs).) | 
| .gif) | OnRegisterDocData | Assigns the document to a cookie and project hierarchy. (Inherited from DocData.) | 
| .gif) | OpenView | Opens a specific view for the document. (Overrides DocData.OpenView(Guid, Object).) | 
| .gif) | QueryEditFile() | Alerts listeners that a document is about to be edited. Listeners can vote against the edit. (Inherited from DocData.) | 
| .gif) | QueryEditFile(String, tagVSQueryEditFlags) | Alerts listeners that a document is about to be edited. Listeners can vote against the edit. (Inherited from DocData.) | 
| .gif) | QuerySaveFile() | Alerts listeners that a file is about to be saved. Listeners can (Inherited from DocData.) | 
| .gif) | QuerySaveFile(String, tagVSQuerySaveFlags) | Alerts listeners that a file is about to be saved. (Inherited from DocData.) | 
| .gif) | ReloadDocData | Reloads the document. (Inherited from DocData.) | 
| .gif) | ReloadDocDataWorker | Reloads the document. (Inherited from DocData.) | 
| .gif) | RenameDocData | Renames a document and resets its position in the hierarchy. (Inherited from DocData.) | 
| .gif) | ResumeErrorListRefresh | Refreshes the Error List window every time that an error or warning message is added for the document. | 
| .gif) | ResumeFileChangeNotification | Resumes the distribution of document-change notifications for the document. (Inherited from DocData.) | 
| .gif) | Save(String) | Saves the document. (Inherited from DocData.) | 
| .gif) | Save(String, Int32, UInt32) | Saves the document. (Inherited from DocData.) | 
| .gif) | SaveCompleted | Alerts listeners that the document has been saved. (Inherited from DocData.) | 
| .gif) | SaveDocData | Saves the document to a specific location. (Inherited from DocData.) | 
| .gif) | SaveDocDataToFile | Saves the document to a specific location. (Inherited from DocData.) | 
| .gif) | SaveSubordinateFile | Save the specified document that is subordinate to this document, for example a diagram file. (Inherited from DocData.) | 
| .gif) | SetData | Sets the document to a buffer. (Inherited from DocData.) | 
| .gif) | SetDocDataDirty | Sets the document's IsDirty flag. (Inherited from DocData.) | 
| .gif) | SetDocDataReadOnly | Sets the document's read-only flag. (Inherited from DocData.) | 
| .gif) | SetFileName | Initializes or changes the file name for the document. (Inherited from DocData.) | 
| .gif) | SetHierarchyInfo | Initializes or changes the project hierarchy for the document. (Inherited from DocData.) | 
| .gif) | SetRootElement | Sets the root element. | 
| .gif) | SetTextBuffer | Not implemented. | 
| .gif) | SetUntitledDocPath | Currently not implemented. (Inherited from DocData.) | 
| .gif) | ShowErrorListItems | Shows all error and warning messages in the Error List window. | 
| .gif) | ShowSaveOptionsDlg | Shows a dialog box from which the user can specify additional options for save formats. (Inherited from DocData.) | 
| .gif) | SupportsLogicalView | Verifies whether the document supports the specified view. | 
| .gif) | SuspendErrorListRefresh | Prevents the Error List window from refreshing. | 
| .gif) | SuspendFileChangeNotification | Suspends the distribution of document-change notifications for the document. (Inherited from DocData.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | DocumentClosed | Occurs after the document is closed. (Inherited from DocData.) | 
| .gif) | DocumentClosing | Occurs before the document is closed. (Inherited from DocData.) | 
| .gif) | DocumentLoaded | Occurs after the document has been loaded in the modeling window. (Inherited from DocData.) | 
| .gif) | DocumentLoading | Occurs before the document is loaded in the modeling window. (Inherited from DocData.) | 
| .gif) | DocumentReadOnlyChanged | Occurs when the read-only flag for the document changes. (Inherited from DocData.) | 
| .gif) | DocumentReloaded | Occurs after the document is reloaded. (Inherited from DocData.) | 
| .gif) | DocumentReloading | Occurs before the document is reloaded. (Inherited from DocData.) | 
| .gif) | DocumentSaved | Occurs after the document is saved. (Inherited from DocData.) | 
| .gif) | DocumentSaving | Occurs before the document is saved. (Inherited from DocData.) | 
| .gif) | FileNameChanged | Occurs when the document's file name changes. (Inherited from DocData.) | 
| .gif) | HierarchyChanged | Occurs when the document's hierarchy or Item ID changes. (Inherited from DocData.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IVsFileBackup.BackupFile | Make a single file backup of this document. (Inherited from DocData.) | 
| .gif) .gif) | IDisposable.Dispose | Releases all resources used by the current instance of the DocData class. (Inherited from DocData.) | 
| .gif) .gif) | IPersistFileFormat.GetClassID | Gets the class ID of the editor factory that created the document. (Inherited from DocData.) | 
| .gif) .gif) | IVsFileBackup.IsBackupFileObsolete | Get whether the backup file is up to date. (Inherited from DocData.) | 
Top
Remarks
The document in memory is backed by an in-memory 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.