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
'Usage
Dim instance As IVsDataViewDocumentProvider2
Dim itemId As Integer
Dim documentData As Object
Dim saveFlags As VSSAVEFLAGS
Dim silentSaveAsName As String
Dim returnValue As Boolean
returnValue = instance.Save(itemId, documentData, _
saveFlags, silentSaveAsName)
bool Save(
int itemId,
Object documentData,
VSSAVEFLAGS saveFlags,
string silentSaveAsName
)
bool Save(
int itemId,
Object^ documentData,
VSSAVEFLAGS saveFlags,
String^ silentSaveAsName
)
function Save(
itemId : int,
documentData : Object,
saveFlags : VSSAVEFLAGS,
silentSaveAsName : String
) : boolean
Parameters
itemId
Type: System.Int32A numerical identifier for the node in the data view.
documentData
Type: System.ObjectThe data contained in the document.
saveFlags
Type: Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGSA value from the VSSAVEFLAGS enumeration specifying the type of save operation.
silentSaveAsName
Type: System.StringA 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
- 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.
See Also
Reference
IVsDataViewDocumentProvider2 Interface
IVsDataViewDocumentProvider2 Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace