Condividi tramite


DesignerDocDataService.SaveDocData Method

Performs a save on the given doc data.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Sub SaveDocData ( _
    docData As DocData _
)
public void SaveDocData(
    DocData docData
)
public:
void SaveDocData(
    DocData^ docData
)
member SaveDocData : 
        docData:DocData -> unit
public function SaveDocData(
    docData : DocData
)

Parameters

Remarks

The document data object must be the one returned from this service. In order to treat all document data objects as a single unit, saves to a single child document data object are normally handled automatically when the primary one is saved or this service is disposed. There are times when a child document data object needs to be removed from the collection of tracked documents before the primary one is saved or closed. The default behavior in this case is for Visual Studio to prompt to save the document. At times a caller may want to force the save to occur rather than prompting the user. An example of this occurs when the document data object is being disposed due to an "OK" on a dialog.

.NET Framework Security

See Also

Reference

DesignerDocDataService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace