 | ControlGetPropertyValueT Method (BindingFlags, String) |
Gets the (serializable) value of the specified control property.
Namespace:
Ranorex
Assembly:
Ranorex.Plugin.WinForms (in Ranorex.Plugin.WinForms.dll) Version: 12.7.4-git.38314c06
Syntaxpublic T GetPropertyValue<T>(
BindingFlags flags,
string name
)
Public Function GetPropertyValue(Of T) (
flags As BindingFlags,
name As String
) As T
Parameters
- flags
- Type: System.ReflectionBindingFlags
A combination of flags that further specify which property to get. - name
- Type: SystemString
The name of the property.
Type Parameters
- T
- The type of the property to get the value from.
Return Value
Type:
TThe value of the named property or the default value of the specified
type if the returned value is
null and the specified type is a value type.
Exceptions| Exception | Condition |
|---|
| InvalidCastException | If the returned value cannot be casted
to the specified type. |
| ActionFailedException | Thrown if invoking the action failed. |
See Also