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
'Dichiarazione
Public Sub SaveDocData ( _
docData As DocData _
)
'Utilizzo
Dim instance As DesignerDocDataService
Dim docData As DocData
instance.SaveDocData(docData)
public void SaveDocData(
DocData docData
)
public:
void SaveDocData(
DocData^ docData
)
member SaveDocData :
docData:DocData -> unit
public function SaveDocData(
docData : DocData
)
Parameters
- docData
Type: Microsoft.VisualStudio.Shell.Design.Serialization.DocData
The DocData to be saved.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.