次の方法で共有


Source.IsDirty Property

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

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

Syntax

'宣言
Public Overridable Property IsDirty As Boolean
public virtual bool IsDirty { get; set; }

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