LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get value of public static field of a .NET class

Solved!
Go to solution

Hi All, 

    Here, I have to retrieve the value of public static field of a .NET class, but I can not find any language construct of LabVIEW supporting it. 
    The public static field I try to access is : 
https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.windowpattern.pattern?view=net...

 

   Is there any way to access the public static field without wrapping it by C# into another class? 

 

Thanks for all your help

 

Godel 

 

 

0 Kudos
Message 1 of 3
(866 Views)
Solution
Accepted by topic author godel

I assume you tried using a Property node, selecting the WindowPattern class when browsing for the .NET class to use. Then selecting the static field from the list. Like so:

 

2021-09-06 14_46_58-Window.png

 

0 Kudos
Message 2 of 3
(863 Views)

Hi tyk007, 

    Thanks for your kind help. I have accessed it through property node. 

Godel

0 Kudos
Message 3 of 3
(850 Views)