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.Int32A numerical identifier for the node in the data view.
documentData
Type: System.ObjectThe 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
- 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
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace