Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcStatus type exposes the following members.
Initializes a new instance of the OpcStatus class which represents a 'neutral good' status.
C#
public OpcStatus()
Initializes a new instance of the OpcStatus class which represents the information associated with the code
specified.
C#
[CLSCompliant(false)] public OpcStatus(OpcStatusCode code)
Parameters
code
OpcStatusCode
The OpcStatusCode the information associated with the value is to be represented.
Gets a value indicating where aggregated data comes from.
C#
public OpcStatusAggregateBits AggregateBits { get; }
Property Value
A combination of the members defined by the OpcStatusAggregateBits enumeration.
Gets the underlying status code its information is represented by the OpcStatus.
C#
[CLSCompliant(false)] public OpcStatusCode Code { get; }
Property Value
One of the members defined by the OpcStatusCode enumeration.
Gets a value which describes the status in detail.
C#
public string Description { get; }
Property Value
A String which describes the OpcStatusCode represented in detail.
Gets a value indicating that the semantics of the associated data value have changed. Clients should not process the data value until they re-read the metadata associated with the variable. Servers should set this property to true if the metadata has changed in way that could cause application errors if the Client does not re-read the metadata. This is for example a change to the engineering units.
C#
public bool HasSemanticsChanged { get; }
Property Value
The value true if the semantic information of a value have changed and a Client needs to re-read the metadata before processing the data value; otherwise the value false.
Remarks
Other specifications may define additional conditions. A Server may define other conditions that cause this property to be equals true. This property is only used as part of data change notifications or historical read operations. In other contexts this property shall be equals false.
Gets a value indicating that the structure of the associated data value has changed since the last notification. Clients should not process the data value unless they re-read the metadata. Servers shall set this property to true if the data type encoding used for a variable or the enumeration information (via EnumStrings) of the data type of a variable changes.
C#
public bool HasStructureChanged { get; }
Property Value
The value true if the Server wants to warn Clients, that parse complex data values, that their parsing routines could fail because the serialized form of the data value changed; otherwise the value false.
Remarks
This property is only used as part of data change notifications or historical read operations. In other contexts this property shall be equals false.
Gets a value indicating that the status information is associated with a data value returned from the Server.
C#
public bool HasValueInfo { get; }
Property Value
The value true if the status information belongs to a data value returned from the Server; otherwise the value false.
Gets a value indicating whether the status Code expresses a bad outcome of the operation associated with this OpcStatus. In the most cases a Client has performed an invalid or (at the moment) unsupported operation. Another reason for a bad status could be that the Server may fail to complete the requested operation upon internal issues with the underlying data source. For more details about specific bad status information see the “bad” members of the OpcStatusCode enumeration.
C#
public bool IsBad { get; }
Property Value
The value true if the Code expresses a failure; otherwise the value false.
Gets a value indicating whether the status Code expresses a good outcome of the operation associated with this OpcStatus. The Client can be sure about that the Server successfully completed the operation requested and its result is totally reliable. Specific “good” status codes may inform the Client about the circumstances under which the operation completed. For more details about specific good status information see the “good” members of the OpcStatusCode enumeration.
C#
public bool IsGood { get; }
Property Value
The value true if the Code expresses a good outcome; otherwise the value false.
Gets a value indicating that not every detected change has been returned since the Servers queue buffer of a monitored item reached its limit and had to purge out data.
C#
public bool IsOverflow { get; }
Property Value
The value true if the queue buffer of a monitored item reached its limit and had to purge out data.
Remarks
This property is only equals true if the monitored item queue size is greater than one.
Gets a value indicating whether the status Code expresses an uncertain outcome of the operation associated with this OpcStatus. An operation with an uncertain outcome expresses in general that the Server can not guarantee a total reliable data value nor an entire complete and successful processing of an operation. The reasons to uncertains varying, for more details about specific uncertain status information see the “uncertain” members of the OpcStatusCode enumeration.
C#
public bool IsUncertain { get; }
Property Value
The value true if the Code expresses an uncertain and there not reliable outcome; otherwise the value false.
Gets a value indicating the constraints a value falls within.
C#
public OpcStatusLimitBits LimitBits { get; }
Property Value
A combination of the members defined by the OpcStatusLimitBits enumeration.
Gets the code used to represent different conditions.
C#
[CLSCompliant(false)] public uint SubCode { get; }
Property Value
A value representing the condition under that the status was produced.
Returns a string that represents the current OpcStatus.
C#
public override string ToString()
Returns
A string that represents the current OpcStatus including the Code and Description of the status represented.
Updates the Code represented by the OpcStatus using the code
specified.
C#
[CLSCompliant(false)] public void Update(OpcStatusCode code)
Parameters
code
OpcStatusCode
The OpcStatusCode to represent.
Remarks
Returns a value indicating whether two instance of OpcStatus are equal.
C#
public static bool operator ==(OpcStatus left, OpcStatus right)
Converts a OpcStatusCode to an OpcStatus object.
C#
[CLSCompliant(false)] public static implicit operator OpcStatus(OpcStatusCode value)
Converts a StatusCode to an OpcStatus object.
C#
[CLSCompliant(false)] public static implicit operator OpcStatus(StatusCode value)
Returns a value indicating whether two instances of OpcStatus are not equal.
C#
public static bool operator !=(OpcStatus left, OpcStatus right)