Gets the number of changes made to the source file since it was opened.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public ReadOnly Property ChangeCount As Integer
'使用
Dim instance As Source
Dim value As Integer
value = instance.ChangeCount
public int ChangeCount { get; }
public:
property int ChangeCount {
int get ();
}
public function get ChangeCount () : 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.
注意
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.