Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll
The Bit struct defines the following members.
Represents the Bit value high as a string.
C#
public static readonly string HighString
Field Value
String
Represents the Bit value low as a string.
C#
public static readonly string LowString
Field Value
String
Converts the specified string representation of a logical value to its Bit equivalent.
C#
public static Bit Parse(string value)
Parameters
value
String
A string containing the value to convert.
Returns
The High if value is equivalent to HighString; Low if value is equivalent to LowString.
Exceptions
The value
is a null reference (Nothing in Visual Basic).
The value
is not equivalent to HighString or LowString.
Converts the value of this instance to its equivalent string representation (either “High” or “Low”).
C#
public override string ToString()
Returns
High“ (the value of the HighString field) if the value of this instance is true, or “Low” (the value of the LowString field) if the value of this instance is false.
Converts the value of this instance to its equivalent string representation (either “High” or “Low”).
C#
public string ToString(IFormatProvider provider)
Parameters
provider
IFormatProvider
(Reserved) An IFormatProvider object.
Returns
HighString if the value of this instance is true, or LowString if the value of this instance is false.
Tries to convert the specified string representation of a logical value to its Bit equivalent. A return value indicates whether the conversion succeeded or failed.
C#
public static bool TryParse(string value, out Bit result)
Parameters
value
String
A String containing the value to convert.
result
Bit
When this method returns, if the conversion succeeded, contains High if value
is equal to HighString or Low if value
is equal to LowString. If the conversion failed, contains false. The conversion fails if value
is a null reference (Nothing in Visual Basic) or is not equal to the value of either the HighString or LowString field.
Returns
The value true if value
was converted successfully; otherwise the value false.
Returns a value indicating whether two values of Bit are equal.
C#
public static bool operator ==(Bit left, Bit right)
Returns a value indicating whether two values of Bit are not equal.
C#
public static bool operator !=(Bit left, Bit right)