LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET class with no constructor

Solved!
Go to solution

I'd like to implement the following function in labview:

1984_0-1707307262177.png

 

but the System.Net.ServicePointManager has no constructor, so while I can set the Type to TLS12 I cant write it to the SecurityProtocol

 

1984_1-1707307400382.png

 

1984_3-1707307453943.png

 

Any ideas about this?

 

Thanks.

0 Kudos
Message 1 of 3
(514 Views)
Solution
Accepted by topic author 1984

It is a static class. It has no constructor.

 

Put a Property node in diagramm, ->right-click->Select class..,->.NET->browse->select ServicePointManager :

 

 

 

Walker34_0-1707308494860.png

 

Message 2 of 3
(506 Views)

ServicePointManager is a static class. ServicePointManager.SecurityProtocol is a property of that static class. Static classes are not instantiated (constructed) but simply accessed through a property or method node.

 

.Net ServicePointManager.png

Rolf Kalbermatter
My Blog
Message 3 of 3
(490 Views)