[Python.NET] instance property must be accessed through a class instance

Charley Peng cpeng92 at gmail.com
Tue Sep 24 03:22:34 CEST 2013


I forgot to add that DeviceList just returns a private variable
(this.deviceList)


On Tue, Sep 24, 2013 at 11:14 AM, Charley Peng <cpeng92 at gmail.com> wrote:

> Hi,
>
> Have come across the error after trying to get the property of the device
> device.DeviceList,
> TypeError: instance property must be accessed through a class instance
> The .NET class has the definition
> public List<Device> DeviceList
> (which just returns a
> I have also tried the method get_DeviceList
> However I get the error TypeError: not enough arguments
>
> I have tried device.get_DeviceList(device) however I get TypeError: No
> method matches given arguments
>
> Does anyone know what the issue is?
>
> Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130924/773ce027/attachment.html>


More information about the PythonDotNet mailing list