AudioCDTime Struct
Represents a CD Audio time used to specify CD track and optionally an offset (in seconds) from the start of the specified CD track.
public struct AudioCDTime : IComparable<AudioCDTime>, IEquatable<AudioCDTime>
Public Structure AudioCDTime
Implements IComparable(Of AudioCDTime), IEquatable(Of AudioCDTime)
Constructors
AudioCDTime(Int32)
Initializes a new instance of the AudioCDTime structure with the specified CD track.
Parameters
track
- System.Int32
The CD track.
Exceptions
- System.ArgumentOutOfRangeException
Parameter track
is less than 1.
AudioCDTime(Int32, Int32)
Initializes a new instance of the AudioCDTime structure with the specified CD track and the time offset (in seconds) from the start of the specified CD track.
Parameters
track
- System.Int32
The CD track.
time
- System.Int32
The time offset (in seconds) from the start of the specified CD track.
Exceptions
- System.ArgumentOutOfRangeException
Parameter track
is less than 1 or parameter time
is less than zero.
Properties
Time
Gets the time offset (in seconds) from the start of the CD Track.
Property Value
- System.Int32
The time offset (in seconds) from the start of the CD Track.
Track
Gets the CD track.
Property Value
- System.Int32
The CD track.
Methods
CompareTo(AudioCDTime)
Compares the value of this instance to a specified AudioCDTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified AudioCDTime value.
public int CompareTo(AudioCDTime other)
Public Function CompareTo(other As AudioCDTime) As Integer
Parameters
other
- AudioCDTime
The object to compare to the current instance.
Returns
- System.Int32
A signed number indicating the relative values of this instance and the other
parameter.
If returned value is less than zero, then this instance is earlier than other
; else, if it is zero, then this instance is the same as other
; else (if it is greater than zero) this instance is later than other
.
Equals(AudioCDTime)
Determines whether the other
AudioCDTime is equal to this AudioCDTime instance.
public bool Equals(AudioCDTime other)
Public Function Equals(other As AudioCDTime) As Boolean
Parameters
other
- AudioCDTime
The other CD Audio time to compare with this CD Audio time instance.
Returns
- System.Boolean
true if the other
AudioCDTime is equal to this AudioCDTime instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this AudioCDTime instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this CD Audio time instance.
Returns
- System.Boolean
true if the specified System.Object is a AudioCDTime and is equal to this AudioCDTime instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this AudioCDTime instance.
Returns
- System.Int32
An integer value that specifies a hash value for this AudioCDTime instance.
Overrides
ToString()
Returns a System.String that represents this AudioCDTime instance.
Returns
- System.String
A System.String that represents this AudioCDTime instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Operators
Equality(AudioCDTime, AudioCDTime)
Determines whether first
and second
AudioCDTimes are equal.
public static bool operator ==(AudioCDTime first, AudioCDTime second)
Public Shared Operator =(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
and second
CD Audio times are equal; otherwise, false.
GreaterThan(AudioCDTime, AudioCDTime)
Determines whether first
AudioCDTime is later than second
AudioCDTime.
public static bool operator>(AudioCDTime first, AudioCDTime second)
Public Shared Operator>(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
CD Audio time is later than second
CD Audio time; otherwise, false.
GreaterThanOrEqual(AudioCDTime, AudioCDTime)
Determines whether first
AudioCDTime is later than or equal to second
AudioCDTime.
public static bool operator >=(AudioCDTime first, AudioCDTime second)
Public Shared Operator >=(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
CD Audio time is later than or equal to second
CD Audio time; otherwise, false.
Inequality(AudioCDTime, AudioCDTime)
Determines whether first
and second
AudioCDTimes are not equal.
public static bool operator !=(AudioCDTime first, AudioCDTime second)
Public Shared Operator <>(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
and second
CD Audio times are not equal; otherwise, false.
LessThan(AudioCDTime, AudioCDTime)
Determines whether first
AudioCDTime is earlier than second
AudioCDTime.
public static bool operator <(AudioCDTime first, AudioCDTime second)
Public Shared Operator <(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
CD Audio time is earlier than second
CD Audio time; otherwise, false.
LessThanOrEqual(AudioCDTime, AudioCDTime)
Determines whether first
AudioCDTime is earlier than or equal to second
AudioCDTime.
public static bool operator <=(AudioCDTime first, AudioCDTime second)
Public Shared Operator <=(first As AudioCDTime, second As AudioCDTime) As Boolean
Parameters
first
- AudioCDTime
The first CD Audio time.
second
- AudioCDTime
The second CD Audio time.
Returns
- System.Boolean
true if first
CD Audio time is earlier than or equal to second
CD Audio time; otherwise, false.