Click or drag to resize

NetworkTimeiTryGetNewtorkTime Method

Tries to get time from (or specified NTP server) and on failure returns local computer time.

Namespace:  TreeksLicensingLibrary2
Assembly:  TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (
public DateTime iTryGetNewtorkTime(
	string NTPServer = ""


NTPServer (Optional)
Type: SystemString
String address of time server. By default

Return Value

Type: DateTime
DateTime object with actual time
The "i" named functions are here to allow access to static members through COM applications. In .NET applications, you can call static methods directly and don't need to instantiate this class.
See Also