TimeServiceSettings Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Manages settings that control synchronizing the system time with a server's time.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Time..::..TimeServiceSettings

Namespace:  Microsoft.SPOT.Time
Assembly:  Microsoft.SPOT.Time (in Microsoft.SPOT.Time.dll)

Syntax

'Declaration
Public Class TimeServiceSettings
public class TimeServiceSettings
public ref class TimeServiceSettings
type TimeServiceSettings =  class end
public class TimeServiceSettings

The TimeServiceSettings type exposes the following members.

Constructors

  Name Description
Public method TimeServiceSettings Initializes a new instance of the TimeServiceSettings class.

Top

Properties

  Name Description
Public property AlternateServer Gets or sets the IP address of the alternate SNTP server.
Public property PrimaryServer Gets or sets the IP address of the primary SNTP server.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field AlternateServerIP Specifies the server to use if communication with the primary server fails.
Public field AutoDayLightSavings Indicates whether the system time is automatically updated for daylight savings.
Public field ForceSyncAtWakeUp Indicates whether the system time syncs with the SNTP server after waking up or after a cold boot.
Protected field PrimaryServerIP The IP address of the primary SNTP server.
Public field RefreshTime Specifies the period between synchronizations with the SNTP server, in seconds.
Public field Tolerance Specifies the largest allowable interval between the time on the SNTP server and the system time, in milliseconds, before the system time is re-synchronized with the server's time.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Time Namespace