ValidationResultsCollectionTryGetFirstWithHighestSeverity Method
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public ValidationResult? TryGetFirstWithHighestSeverity(
string? propertyName = null
)
Public Function TryGetFirstWithHighestSeverity (
Optional propertyName As String = Nothing
) As ValidationResult
public:
ValidationResult^ TryGetFirstWithHighestSeverity(
String^ propertyName = nullptr
)
member TryGetFirstWithHighestSeverity :
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> ValidationResult
- propertyName String (Optional)
- An optional property name to get the result for a specific property, or to get the
highest severity ValidationResult for any property.
ValidationResultThe first
ValidationResult with highest severity using the specified
propertyName, or
,
if no such
ValidationResult exists.