Udostępnij za pośrednictwem


Source.IsDirty Property

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Property IsDirty As Boolean
public virtual bool IsDirty { get; set; }
public:
virtual property bool IsDirty {
    bool get ();
    void set (bool value);
}
abstract IsDirty : bool with get, set
override IsDirty : bool with get, set
function get IsDirty () : boolean
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

Microsoft.VisualStudio.Package Namespace