Share via


IVsDataViewDocumentProvider2.Save(Int32, Object, VSSAVEFLAGS, String) Method

Definition

When implemented by a class, saves the specified document.

public:
 bool Save(int itemId, System::Object ^ documentData, Microsoft::VisualStudio::Shell::Interop::VSSAVEFLAGS saveFlags, System::String ^ silentSaveAsName);
public bool Save (int itemId, object documentData, Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS saveFlags, string silentSaveAsName);
abstract member Save : int * obj * Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * string -> bool
Public Function Save (itemId As Integer, documentData As Object, saveFlags As VSSAVEFLAGS, silentSaveAsName As String) As Boolean

Parameters

itemId
Int32

A numerical identifier for the node in the data view.

documentData
Object

The data contained in the document.

saveFlags
VSSAVEFLAGS

A value from the VSSAVEFLAGS enumeration specifying the type of save operation.

silentSaveAsName
String

A new document name for use when saving without prompting the user for a new name.

Returns

true if the document was saved, false if the save operation failed.

Applies to