Version

Validate Method (AppStylePropertyConverter)

Used to determine if the specified value is valid for the property.
Syntax
'Declaration
 
Public MustOverride Function Validate( _
   ByVal property As AppStyleProperty, _
   ByRef value As Object, _
   ByRef errorMessage As String _
) As Boolean
public abstract bool Validate( 
   AppStyleProperty property,
   ref object value,
   ref string errorMessage
)

Parameters

property
Associated property.
value
By Ref. The value to evaluate. This can be modified to provide a different value; for example, if the value is null, the default value may be returned.
errorMessage
By Ref. The message that should be displayed if the value is invalid.

Return Value

True if the value is valid, otherwise false.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also