IsSignatureValid Property

Type

system.boolean

 

Access

Get only

 

Description

The IsSignatureValid Property indicates if the base data source file has been manually edited (i.e. with Notepad) since the last time it was saved. The base data source is written out with a calculated signature value based on the current contents at the time it is saved. If the file is edited prior to being loaded, the signature saved in the file will not match the signature calculated from the (edited) contents of the file. This method will return true if the calculated signature matches the signature from the file, and false otherwise.

 

Example

[VB]

Private Sub GeoCalcNET_DataSourceComponent_IsLoaded(ByVal data As GeoCalcNET.DataSourceComponent)

If Not data.IsSignatureValid Then

Dim msg As String = "The data source has changed since it was last saved"

MessageBox.Show(msg)

End If

End Sub

 

[C#]

private void GeoCalcNET_DataSourceComponent_IsLoaded(GeoCalcNET.DataSourceComponent data)

{

if(!data.IsSignatureValid)

{

MessageBox.Show(The data source has changed since it was last saved);

}

}