Partager via


IVsDataViewDocumentProvider2.Save Method

When implemented by a class, saves the specified document.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function Save ( _
    itemId As Integer, _
    documentData As Object, _
    saveFlags As VSSAVEFLAGS, _
    silentSaveAsName As String _
) As Boolean
bool Save(
    int itemId,
    Object documentData,
    VSSAVEFLAGS saveFlags,
    string silentSaveAsName
)
bool Save(
    int itemId, 
    Object^ documentData, 
    VSSAVEFLAGS saveFlags, 
    String^ silentSaveAsName
)
abstract Save : 
        itemId:int * 
        documentData:Object * 
        saveFlags:VSSAVEFLAGS * 
        silentSaveAsName:string -> bool
function Save(
    itemId : int, 
    documentData : Object, 
    saveFlags : VSSAVEFLAGS, 
    silentSaveAsName : String
) : boolean

Parameters

  • itemId
    Type: System.Int32

    A numerical identifier for the node in the data view.

  • documentData
    Type: System.Object

    The data contained in the document.

  • silentSaveAsName
    Type: System.String

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

Return Value

Type: System.Boolean
true if the document was saved, false if the save operation failed.

.NET Framework Security

See Also

Reference

IVsDataViewDocumentProvider2 Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace