Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll
The ByteString struct defines the following members.
Initializes a new ByteString from the value
specified.
C#
public ByteString(params byte[] value)
Parameters
value
Byte[]
The array of Byte values to represent or a null reference (Nothing in Visual Basic).
Remarks
If value
is a null reference (Nothing in Visual Basic) an empty array of Byte values is used.
Gets the Byte at the specified index.
C#
public byte this[int index] { get; set; }
Property Value
The Byte at the specified index.
Exceptions
The index
is not valid index in the ByteString.
Gets the total number of elements in all the dimensions of the ByteString.
C#
public int Length { get; }
Property Value
The total number of elements in all the dimensions of the ByteString; zero if there are no elements in the array.
Compares the current ByteString with another ByteString.
C#
public int CompareTo(ByteString other)
Parameters
other
ByteString
The ByteString to compare with this ByteString.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(0)).
Compares the current ByteString with the other
.
C#
public int CompareTo(object other)
Parameters
other
Object
The ByteString to compare with this ByteString.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).
Determines whether the specified other
is equal to this ByteString.
C#
public bool Equals(ByteString other)
Parameters
other
ByteString
The ByteString to compare to the current ByteString.
Returns
The value true if the specified ByteString is equal to the current ByteString; otherwise the value false.
Determines whether the specified other
is equal to this ByteString.
C#
public override bool Equals(object other)
Parameters
other
Object
The ByteString to compare to the current ByteString.
Returns
The value true if the specified ByteString is equal to the current ByteString; otherwise the value false.
Retrieves a hash code for this ByteString.
C#
public override int GetHashCode()
Returns
An Int32 that contains the hash code for the ByteString.
Converts the specified hex encoded byte array to its ByteString equivalent.
C#
public static ByteString Parse(string value)
Parameters
value
String
A String containing the hex encoded byte array to convert.
Returns
A ByteString which represents the hex encoded byte array of the value
specified.
Exceptions
The value
is a null reference (Nothing in Visual Basic).
The value
is not a valid hex encoded byte array.
Converts the value of this instance to its equivalent hex encoded string representation.
C#
public override string ToString()
Returns
The hex encoded string representation.
Tries to convert the specified hex encoded byte array to its ByteString equivalent. A return value indicates whether the conversion succeeded or failed.
C#
public static bool TryParse(string value, out ByteString result)
Parameters
value
String
A String containing the hex encoded byte array to convert.
result
ByteString
When this method returns, if the conversion succeeded, the ByteString if value
is a valid hex encoded byte array. If the conversion failed, contains a default ByteString. The conversion fails if value
is a null reference (Nothing in Visual Basic) or is not a valid hex encoded byte array.
Returns
The value true if value
was converted successfully; otherwise the value false.
Returns a value indicating whether two values of ByteString are equal.
C#
public static bool operator ==(ByteString left, ByteString right)
Determines whether the first specified ByteString value is greater than the second specified ByteString value.
C#
public static bool operator>(ByteString left, ByteString right)
Determines whether the first specified ByteString value is greater than or equal to the second specified ByteString value.
C#
public static bool operator >=(ByteString left, ByteString right)
Converts a Byte array to a ByteString value.
C#
public static implicit operator ByteString(byte[] value)
Returns a value indicating whether two values of ByteString are not equal.
C#
public static bool operator !=(ByteString left, ByteString right)
Determines whether the first specified ByteString value is less than the second specified ByteString value.
C#
public static bool operator <(ByteString left, ByteString right)
Determines whether the first specified ByteString value is less than or equal to the second ByteString value.
C#
public static bool operator <=(ByteString left, ByteString right)