Schedule Class

Represents a build definition schedule.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Build.Server.Schedule

Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)

Syntax

'Declaration
<ClassVisibilityAttribute(ClientVisibility.Internal, ClientVisibility.Internal)> _
Public NotInheritable Class Schedule
[ClassVisibilityAttribute(ClientVisibility.Internal, ClientVisibility.Internal)]
public sealed class Schedule
[ClassVisibilityAttribute(ClientVisibility::Internal, ClientVisibility::Internal)]
public ref class Schedule sealed
[<Sealed>]
[<ClassVisibilityAttribute(ClientVisibility.Internal, ClientVisibility.Internal)>]
type Schedule =  class end
public final class Schedule

The Schedule type exposes the following members.

Constructors

  Name Description
Public method Schedule

Top

Properties

  Name Description
Public property TimeZoneId Gets or sets the time zone ID. This value is used for applying daylight savings time rules.
Public property UtcDaysToBuild Gets or sets the days, in Coordinated Universal Time (UTC), that the schedule should run.
Public property UtcStartTime Gets or sets the offset past midnight, in seconds, that the schedule should run.

Top

Methods

  Name Description
Public method AdjustUtcStartTimeForDST This method will adjust the start time for DST. We start with when the schedule was saved in UTC then we go down 2 paths: First path - is add the days since saved to the utc last modified (no DST taken into account) and then we localize. Second path - localize the utc last modified then add the days since saved (this will now adjust for DST). The second path - the the first path gives us any DST change and we add this to our scheduled time.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString (Overrides Object.ToString().)

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.TeamFoundation.Build.Server Namespace