Udostępnij za pośrednictwem


Source.ChangeCount Property

Gets the number of changes made to the source file since it was opened.

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 Property ChangeCount As Integer
public int ChangeCount { get; set; }
public:
property int ChangeCount {
    int get ();
    void set (int value);
}
member ChangeCount : int with get, set
function get ChangeCount () : int
function set ChangeCount (value : int)

Property Value

Type: System.Int32
The number of times the source file was changed.

Remarks

This value is used by the EditArray class to make sure changes are kept in synchronization.

Note

The value returned is incremented when the IsDirty property is set. When the value reaches the maximum possible for an integer (2^31 - 1), it wraps to 0.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace