ConstrainDomString Struct
The ConstrainDOMString typedef (https://w3c.github.io/mediacapture-main/#dom-constraindomstring): a bare value, a list of bare values, or exact and ideal values.
public readonly struct ConstrainDomString : IEquatable<ConstrainDomString>- Implements
Properties
| Name | Description |
|---|---|
| Bare | Gets the bare value when the union holds it, otherwise null. |
| BareList | Gets the list of bare values when the union holds it, otherwise null. |
| Parameters | Gets the parameters when the union holds it, otherwise null. |
| Value | Gets the value of the union: String or string[] or ConstrainDomStringParameters. |
BareList
MediaCaptureUnions.csGets the list of bare values when the union holds it, otherwise null.
public IReadOnlyList<string>? BareList { get; }Property value
Parameters
MediaCaptureUnions.csGets the parameters when the union holds it, otherwise null.
public ConstrainDomStringParameters? Parameters { get; }Property value
Gets the value of the union: String or string[] or ConstrainDomStringParameters.
public object Value { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(ConstrainDomString) | 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. |
| FromConstrainDomStringParameters(ConstrainDomStringParameters) | Creates the union from the parameters. |
| FromString(string) | Creates the union from the bare value. |
| FromStrings(string[]) | Creates the union from the list of bare values. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(ConstrainDomString)
MediaCaptureUnions.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ConstrainDomString other)Parameters
otherConstrainDomString- 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.csFromConstrainDomStringParameters(ConstrainDomStringParameters)
MediaCaptureUnions.csCreates the union from the parameters.
public static ConstrainDomString FromConstrainDomStringParameters(ConstrainDomStringParameters value)FromString(string)
MediaCaptureUnions.csCreates the union from the bare value.
public static ConstrainDomString FromString(string value)FromStrings(string[])
MediaCaptureUnions.csCreates the union from the list of bare values.
public static ConstrainDomString FromStrings(string[] value)GetHashCode()
MediaCaptureUnions.csOperators
| Name | Description |
|---|---|
| operator ==(ConstrainDomString, ConstrainDomString) | Returns whether the two unions hold the same value. |
| implicit operator ConstrainDomString(ConstrainDomStringParameters) | Creates the union from the parameters. |
| implicit operator ConstrainDomString(string) | Creates the union from the bare value. |
| implicit operator ConstrainDomString(string[]) | Creates the union from the list of bare values. |
| operator !=(ConstrainDomString, ConstrainDomString) | Returns whether the two unions hold different values. |
operator ==(ConstrainDomString, ConstrainDomString)
MediaCaptureUnions.csReturns whether the two unions hold the same value.
public static bool operator ==(ConstrainDomString left, ConstrainDomString right)op_Implicit overloads
implicit operator ConstrainDomString(ConstrainDomStringParameters)
MediaCaptureUnions.csCreates the union from the parameters.
public static implicit operator ConstrainDomString(ConstrainDomStringParameters value)implicit operator ConstrainDomString(string)
MediaCaptureUnions.csCreates the union from the bare value.
public static implicit operator ConstrainDomString(string value)implicit operator ConstrainDomString(string[])
MediaCaptureUnions.csCreates the union from the list of bare values.
public static implicit operator ConstrainDomString(string[] value)operator !=(ConstrainDomString, ConstrainDomString)
MediaCaptureUnions.csReturns whether the two unions hold different values.
public static bool operator !=(ConstrainDomString left, ConstrainDomString right)