Class SegmentHandle
public abstract class SegmentHandle : SafeHandle, IDisposable, IEquatable<SegmentHandle>
- Inheritance
-
SegmentHandle
- Implements
- Derived
- Inherited Members
Constructors
SegmentHandle(bool)
protected SegmentHandle(bool ownsHandle)
Parameters
ownsHandle
bool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override sealed bool IsInvalid { get; }
Property Value
Methods
Equals(SegmentHandle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SegmentHandle? other)
Parameters
other
SegmentHandleAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetAppliedRate()
public double GetAppliedRate()
Returns
GetBase()
public ulong GetBase()
Returns
GetDuration()
public ulong GetDuration()
Returns
GetFlags()
public SegmentFlags GetFlags()
Returns
GetFormat()
public Format GetFormat()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetOffset()
public ulong GetOffset()
Returns
GetPosition()
public ulong GetPosition()
Returns
GetRate()
public double GetRate()
Returns
GetStart()
public ulong GetStart()
Returns
GetStop()
public ulong GetStop()
Returns
GetTime()
public ulong GetTime()
Returns
OwnedCopy()
public SegmentOwnedHandle OwnedCopy()
Returns
SetAppliedRate(double)
public void SetAppliedRate(double value)
Parameters
value
double
SetBase(ulong)
public void SetBase(ulong value)
Parameters
value
ulong
SetDuration(ulong)
public void SetDuration(ulong value)
Parameters
value
ulong
SetFlags(SegmentFlags)
public void SetFlags(SegmentFlags value)
Parameters
value
SegmentFlags
SetFormat(Format)
public void SetFormat(Format value)
Parameters
value
Format
SetOffset(ulong)
public void SetOffset(ulong value)
Parameters
value
ulong
SetPosition(ulong)
public void SetPosition(ulong value)
Parameters
value
ulong
SetRate(double)
public void SetRate(double value)
Parameters
value
double
SetStart(ulong)
public void SetStart(ulong value)
Parameters
value
ulong
SetStop(ulong)
public void SetStop(ulong value)
Parameters
value
ulong
SetTime(ulong)
public void SetTime(ulong value)
Parameters
value
ulong
UnownedCopy()
public SegmentUnownedHandle UnownedCopy()