Search Results for

    Show / Hide Table of Contents

    Class RepeatTime

    An SDP repeat time element.

    Inheritance
    System.Object
    RepeatTime
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch.Sdp
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class RepeatTime

    Constructors

    RepeatTime(TimeSpan, TimeSpan)

    Initializes a new instance of the RepeatTime class.

    Declaration
    public RepeatTime(TimeSpan repeatInterval, TimeSpan activeDuration)
    Parameters
    Type Name Description
    System.TimeSpan repeatInterval

    The repeat interval.

    System.TimeSpan activeDuration

    The active duration.

    RepeatTime(TimeSpan, TimeSpan, TimeSpan[])

    Initializes a new instance of the RepeatTime class.

    Declaration
    public RepeatTime(TimeSpan repeatInterval, TimeSpan activeDuration, TimeSpan[] offsets)
    Parameters
    Type Name Description
    System.TimeSpan repeatInterval

    The repeat interval.

    System.TimeSpan activeDuration

    The active duration.

    System.TimeSpan[] offsets

    The offsets from the start time.

    Properties

    ActiveDuration

    Gets or sets the active duration.

    Declaration
    public TimeSpan ActiveDuration { get; }
    Property Value
    Type Description
    System.TimeSpan

    Offsets

    Gets the array of offsets from the start time.

    Declaration
    public TimeSpan[] Offsets { get; }
    Property Value
    Type Description
    System.TimeSpan[]

    RepeatInterval

    Gets or sets the repeat interval.

    Declaration
    public TimeSpan RepeatInterval { get; }
    Property Value
    Type Description
    System.TimeSpan

    Methods

    AddOffset(TimeSpan)

    Adds an offset from the start time.

    Declaration
    public void AddOffset(TimeSpan offset)
    Parameters
    Type Name Description
    System.TimeSpan offset

    The offset from the start time to add.

    Parse(String)

    Creates an RepeatTime instance from a string.

    Declaration
    public static RepeatTime Parse(string s)
    Parameters
    Type Name Description
    System.String s

    The string to parse.

    Returns
    Type Description
    RepeatTime

    RemoveOffset(TimeSpan)

    Removes an offset from the start time.

    Declaration
    public bool RemoveOffset(TimeSpan offset)
    Parameters
    Type Name Description
    System.TimeSpan offset

    The offset from the start time to remove.

    Returns
    Type Description
    System.Boolean

    ToString()

    Converts this instance to a string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0