Compartir a través de


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
bool IsDirty(
    int itemId,
    Object documentData
)
bool IsDirty(
    int itemId, 
    Object^ documentData
)
abstract IsDirty : 
        itemId:int * 
        documentData:Object -> bool
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

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace