ConstrainULong Struct
The ConstrainULong typedef (https://w3c.github.io/mediacapture-main/#dom-constrainulong): a bare value, or a range with an exact and an ideal value.
public readonly struct ConstrainULong : IEquatable<ConstrainULong>- Implements
Properties
| Name | Description |
|---|---|
| Bare | Gets the bare value when the union holds it, otherwise null. |
| Range | Gets the range when the union holds it, otherwise null. |
| Value | Gets the value of the union: UInt32 or ConstrainULongRange. |
Gets the range when the union holds it, otherwise null.
public ConstrainULongRange? Range { get; }Property value
Gets the value of the union: UInt32 or ConstrainULongRange.
public object Value { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(ConstrainULong) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| FromConstrainULongRange(ConstrainULongRange) | Creates the union from the range. |
| FromUInt32(uint) | Creates the union from the bare value. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(ConstrainULong)
MediaCaptureUnions.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ConstrainULong other)Parameters
otherConstrainULong- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
MediaCaptureUnions.csFromConstrainULongRange(ConstrainULongRange)
MediaCaptureUnions.csCreates the union from the range.
public static ConstrainULong FromConstrainULongRange(ConstrainULongRange value)FromUInt32(uint)
MediaCaptureUnions.csCreates the union from the bare value.
public static ConstrainULong FromUInt32(uint value)GetHashCode()
MediaCaptureUnions.csOperators
| Name | Description |
|---|---|
| operator ==(ConstrainULong, ConstrainULong) | Returns whether the two unions hold the same value. |
| implicit operator ConstrainULong(ConstrainULongRange) | Creates the union from the range. |
| implicit operator ConstrainULong(uint) | Creates the union from the bare value. |
| operator !=(ConstrainULong, ConstrainULong) | Returns whether the two unions hold different values. |
operator ==(ConstrainULong, ConstrainULong)
MediaCaptureUnions.csReturns whether the two unions hold the same value.
public static bool operator ==(ConstrainULong left, ConstrainULong right)op_Implicit overloads
implicit operator ConstrainULong(ConstrainULongRange)
MediaCaptureUnions.csCreates the union from the range.
public static implicit operator ConstrainULong(ConstrainULongRange value)implicit operator ConstrainULong(uint)
MediaCaptureUnions.csCreates the union from the bare value.
public static implicit operator ConstrainULong(uint value)operator !=(ConstrainULong, ConstrainULong)
MediaCaptureUnions.csReturns whether the two unions hold different values.
public static bool operator !=(ConstrainULong left, ConstrainULong right)