wwDotNetBridge::GetProperty

Retrieves a property value from an object instance via Reflection.

Use this method whenever you're dealing with an object such as a generic type of collection or struct that COM doesn't support direct access from FoxPro via COM.

o.GetProperty(loInstance, lcProperty)

Return Value

Value of the property or null. Check lError property for error result

Parameters

loInstance
A .NET object instance

lcProperty
The name of the property to retrieve

The property can also be a 'nested' property like "Address.Street". Use this syntax if a type along the hierarchy is not accessible by FoxPro (Value type, Generic Type etc.)


See also:

Class wwDotNetBridge

© West Wind Technologies, 1996-2018 • Updated: 06/07/17
Comment or report problem with topic