Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcResult type exposes the following members.
Initializes a new instance of the OpcResult class using the exception
specified.
C#
public OpcResult(Exception exception)
Parameters
exception
Exception
The Exception from that the result information is to be determined.
Remarks
An OpcResult constructed from an Exception does always define the Bad as Code. Only in case there Exception does define a OpcException the Code may depend on the contents of the exception
.
Initializes a new instance of the OpcResult class using the exception
and description
specified.
C#
public OpcResult(Exception exception, string description)
Parameters
exception
Exception
The Exception from that the result information is to be determined.
description
String
The String which describes the meaning of the exception
represented by the result.
Initializes a new instance of the OpcResult class using the statusCode
specified.
C#
[CLSCompliant(false)] public OpcResult(OpcStatusCode statusCode)
Parameters
statusCode
OpcStatusCode
One of the OpcStatusCode enumeration members identifying the result to represent.
Initializes a new instance of the OpcResult class using the statusCode
and description
specified.
C#
[CLSCompliant(false)] public OpcResult(OpcStatusCode statusCode, string description)
Parameters
statusCode
OpcStatusCode
One of the OpcStatusCode enumeration members identifying the result to represent.
description
String
The String which describes the meaning of the statusCode
represented by the result.
Gets additional diagnostic/debugging information associated with the operation which provides the result represented.
C#
public virtual string Addition { get; }
Property Value
A string representing additional diagnostic/debugging information.
Gets the OpcStatusCode associated with the result.
C#
[CLSCompliant(false)] public virtual OpcStatusCode Code { get; }
Property Value
One of the members defined by the OpcStatusCode enumeration or a custom numeric expression for custom status codes.
Gets the localized description of the result represented.
C#
public virtual OpcText Description { get; }
Property Value
The localized description from that the result has been created if neither a null reference (Nothing in Visual Basic) nor empty; otherwise the description associated with the Code.
Gets a value indicating whether the result falls within the category bad.
C#
public virtual bool IsBad { get; }
Property Value
The value true if the result falls within the category bad; otherwise the value false.
Gets a value indicating whether the result falls within the category good.
C#
public virtual bool IsGood { get; }
Property Value
The value true if the result falls within the category good; otherwise the value false.
Gets a value indicating whether the result falls within the category uncertain.
C#
public virtual bool IsUncertain { get; }
Property Value
The value true if the result falls within the category uncertain; otherwise the value false.
Returns the OpcResult that is the root cause of one or more subsequent exceptions.
C#
public OpcResult GetBaseResult()
Returns
The first result captured in a chain of results. If the InnerResult property of the current result is a null reference (Nothing in Visual Basic), this method returns the current result.
Returns a string that represents the current OpcResult.
C#
public override string ToString()
Returns
A string that represents the current OpcResult including the Code and Description of the result represented.
Returns a value indicating whether two instance of OpcResult are equal.
C#
public static bool operator ==(OpcResult left, OpcResult right)
Converts a OpcResult to an ServiceResult object.
C#
[CLSCompliant(false)] public static explicit operator ServiceResult(OpcResult value)
Converts a OpcStatusCode to an OpcResult object.
C#
[CLSCompliant(false)] public static implicit operator OpcResult(OpcStatusCode value)
Converts a ServiceResult to an OpcResult object.
C#
[CLSCompliant(false)] public static implicit operator OpcResult(ServiceResult value)
Converts a StatusCode to an OpcResult object.
C#
[CLSCompliant(false)] public static implicit operator OpcResult(StatusCode value)
Returns a value indicating whether two instances of OpcResult are not equal.
C#
public static bool operator !=(OpcResult left, OpcResult right)