Gets the (serializable) value of the specified control property.
| C# | Visual Basic | Visual C++ |
public T GetPropertyValue<T>( BindingFlags flags, string name )
Public Function GetPropertyValue(Of T) ( _ flags As BindingFlags, _ name As String _ ) As T
public: generic<typename T> T GetPropertyValue( BindingFlags flags, String^ name )
- T
- The type of the property to get the value from.
- flags (BindingFlags)
- A combination of flags that further specify which property to get.
- name (String)
- The name of the property.
The 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.
| Exception | Condition |
|---|---|
| InvalidCastException | If the returned value cannot be casted
to the specified type. |
| ActionFailedException | Thrown if invoking the action failed. |
