Condividi tramite


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

'Dichiarazione
Public Overridable Property IsDirty As Boolean
    Get
    Set
'Utilizzo
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);
}
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

Source Members

Microsoft.VisualStudio.Package Namespace