ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(1,836 Views)
Solution
Accepted by 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
(1,828 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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 3
(1,812 Views)