Changes
Created page with "{{Item/Resources/CodeSnippetHeader}} === Set Validation TimeStamp of a Property === {{Item/Resources/CodeSnippetInfo|KNO}} <syntaxhighlight lang="csharp"> // Set Validatio..."
{{Item/Resources/CodeSnippetHeader}}
=== Set Validation TimeStamp of a Property ===
{{Item/Resources/CodeSnippetInfo|KNO}}
<syntaxhighlight lang="csharp">
// Set Validation TimeStamp
BaseProperty baseProperty;
if (this.TryGetProperty("PROPERTYNAME", out baseProperty))
{
baseProperty.SetValidationTimestamp(System.DateTime.Now);
}
// Remove Validation TimeStamp
BaseProperty baseProperty;
if (this.TryGetProperty("PROPERTYNAME", out baseProperty))
{
baseProperty.SetValidationTimestamp(null);
}
</syntaxhighlight>
[[Category:Internal resources]]
=== Set Validation TimeStamp of a Property ===
{{Item/Resources/CodeSnippetInfo|KNO}}
<syntaxhighlight lang="csharp">
// Set Validation TimeStamp
BaseProperty baseProperty;
if (this.TryGetProperty("PROPERTYNAME", out baseProperty))
{
baseProperty.SetValidationTimestamp(System.DateTime.Now);
}
// Remove Validation TimeStamp
BaseProperty baseProperty;
if (this.TryGetProperty("PROPERTYNAME", out baseProperty))
{
baseProperty.SetValidationTimestamp(null);
}
</syntaxhighlight>
[[Category:Internal resources]]
