The Ntp type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkNtp(String)
Creates an instance of Ntp class and binds it to the specified NTP time server.
Public methodSupported by the .NET Compact FrameworkNtp(String, Int32)
Creates an instance of Ntp class and binds it to the specified NTP time server.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkBeginGetTime
Begins asynchronous GetTime operation. Sends a request for time to the NTP server passed to the constructor and waits for the answer that contains the time values to calculate the offset between the local and server time.
Public methodSupported by the .NET Compact FrameworkBeginSynchronizeSystemClock
Begins asynchronous SynchronizeSystemClock operation. Synchronize the local time with the server.
(Inherited from TimeBase.)
Public methodSupported by the .NET Compact FrameworkEndGetTime
Ends an asynchronous BeginGetTime operation.
Public methodSupported by the .NET Compact FrameworkEndSynchronizeSystemClock
Ends an asynchronous BeginSynchronizeSystemClock operation.
(Inherited from TimeBase.)
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetTime
Sends a request for time to the NTP server passed to the constructor and waits for the answer that contains the time values to calculate the offset between the local and server time.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSynchronizeSystemClock()()()()
Synchronize the local time with the server.
(Inherited from TimeBase.)
Public methodStatic memberSupported by the .NET Compact FrameworkSynchronizeSystemClock(String)
Synchronize the local time with the NTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSynchronizeSystemClock(String, Int32)
Synchronize the local time with the NTP server.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkDefaultPort
Default NTP port number (123).

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSkipStratumCheck
Gets or sets a value indicating whether the stratum value returned by the server is checked for a value indicating a Kiss-of-Death (error) packet (default is to perform check).
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out).
(Inherited from TimeBase.)
Public propertySupported by the .NET Compact FrameworkVersionNumber
NTP/SNTP protocol version number.

See Also