NetworkTimeiGetNetworkTime Method |
Returns date and time information from specified NTP server
Namespace:
TreeksLicensingLibrary2
Assembly:
TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (2.1.0.0)
Syntaxpublic DateTime iGetNetworkTime(
string NTPServer = "time.windows.com"
)
Public Function iGetNetworkTime (
Optional NTPServer As String = "time.windows.com"
) As DateTime
public:
DateTime iGetNetworkTime(
String^ NTPServer = L"time.windows.com"
)
member iGetNetworkTime :
?NTPServer : string
(* Defaults:
let _NTPServer = defaultArg NTPServer "time.windows.com"
*)
-> DateTime
Parameters
- NTPServer (Optional)
- Type: SystemString
String address of time server. By default time.windows.com
Return Value
Type:
DateTimeDateTime object with actual time
RemarksThe "i" named functions are here to allow access to static members in COM applications. In .NET applications you can call static methods directly and don't need to instantiate this class.
See Also