Changes

Internal:Set ValidationTimeStamp

577 bytes added, 16:11, 20 May 2015
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]]
10,686
edits