IVsDataViewDocumentProvider2.IsDirty Method

When implemented by a class, indicates whether the specified document has data that is modified and is not saved yet.

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

Syntax

'Declaration
Function IsDirty ( _
    itemId As Integer, _
    documentData As Object _
) As Boolean
'Usage
Dim instance As IVsDataViewDocumentProvider2 
Dim itemId As Integer 
Dim documentData As Object 
Dim returnValue As Boolean 

returnValue = instance.IsDirty(itemId, _
    documentData)
bool IsDirty(
    int itemId,
    Object documentData
)
bool IsDirty(
    int itemId, 
    Object^ documentData
)
function IsDirty(
    itemId : int, 
    documentData : Object
) : 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.

Return Value

Type: System.Boolean
true if the document has data that is modified and is not saved yet; otherwise, false.

Remarks

Use this method to determine whether the save the document.

.NET Framework Security

See Also

Reference

IVsDataViewDocumentProvider2 Interface

IVsDataViewDocumentProvider2 Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace