Share via


Source.IsDirty Property

Gets or sets whether any of the lines of source have changed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Property IsDirty As Boolean
'Usage
Dim instance As Source 
Dim value As Boolean 

value = instance.IsDirty

instance.IsDirty = value
public virtual bool IsDirty { get; set; }
public:
virtual property bool IsDirty {
    bool get ();
    void set (bool value);
}
public function get IsDirty () : boolean 
public function set IsDirty (value : boolean)

Property Value

Type: System.Boolean
true if at least one line of source has changed; otherwise, returns false.

Remarks

Each time this property is set, an internal value is incremented, tracking the number of changes made during the life of this Source object. This change count value can be retrieved with the ChangeCount property. This value is typically used internally to synchronize changes.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace