Table of Contents

Method GetValue

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

GetValue(object, string)

Find the binding that uses the given item and property, and return the value appropriate to the current validation step.

public object GetValue(object item, string propertyName)

Parameters

item object
propertyName string

Returns

object

Exceptions

InvalidOperationException

the binding group does not contain a binding corresponding to the given item and property.

ValueUnavailableException

the value is not available. This could be because an earlier validation rule deemed the value invalid, or because the value could not be produced for some reason, such as conversion failure.