C# Class Opc.Ua.ServiceResult

ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Private Properties

Property Type Description
LookupString string
ServiceResult System

Public Methods

Method Description
BuildExceptionTrace ( Exception exception ) : string

Returns a string containing all nested exceptions.

Create ( Exception e, TranslationInfo translation, uint defaultCode ) : ServiceResult

Creates a new instance of a ServiceResult

Create ( Exception e, uint defaultCode, string format ) : ServiceResult

Creates a new instance of a ServiceResult

Create ( uint code, TranslationInfo translation ) : ServiceResult

Creates a new instance of a ServiceResult

Create ( uint code, string format ) : ServiceResult

Creates a new instance of a ServiceResult

IsBad ( ServiceResult status ) : bool

Returns true if the status code is bad.

IsGood ( ServiceResult status ) : bool

Returns true if the status code is good.

IsNotBad ( ServiceResult status ) : bool

Returns true if the status is good or uncertain.

IsNotGood ( ServiceResult status ) : bool

Returns true if the status is bad or uncertain.

IsNotUncertain ( ServiceResult status ) : bool

Returns true if the status is good or uncertain.

IsUncertain ( ServiceResult status ) : bool

Returns true if the status code is uncertain.

LookupSymbolicId ( uint code ) : string

Looks up the symbolic name for a status code.

ServiceResult ( Exception exception ) : System

Constructs a object from an exception.

ServiceResult ( Exception exception, uint defaultCode ) : System

Constructs a object from an exception.

The code parameter is ignored for ServiceResultExceptions.

ServiceResult ( Exception exception, uint defaultCode, Opc.Ua.LocalizedText defaultLocalizedText ) : System

Constructs a object from an exception.

The defaultCode and defaultLocalizedText parameters are ignored for ServiceResultExceptions.

ServiceResult ( Exception exception, uint defaultCode, string defaultSymbolicId, string defaultNamespaceUri ) : System

Constructs a object from an exception.

The code, symbolicId and namespaceUri parameters are ignored for ServiceResultExceptions.

ServiceResult ( Exception e, uint defaultCode, string defaultSymbolicId, string defaultNamespaceUri, Opc.Ua.LocalizedText defaultLocalizedText ) : System

Constructs a object from an exception.

The code, symbolicId, namespaceUri and localizedText parameters are ignored for ServiceResultExceptions.

ServiceResult ( Opc.Ua.StatusCode status ) : System

Constructs a object from a StatusCode.

ServiceResult ( Opc.Ua.StatusCode code, DiagnosticInfo diagnosticInfo, IList stringTable ) : System

Initializes the object with a status code and a diagnostic info structure.

ServiceResult ( Opc.Ua.StatusCode code, Exception innerException ) : System

Constructs a object by specifying each property.

The innerException is used to construct the innerResult.

ServiceResult ( Opc.Ua.StatusCode code, Opc.Ua.LocalizedText localizedText ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, Opc.Ua.LocalizedText localizedText, Exception innerException ) : System

Constructs a object by specifying each property.

The innerException is used to construct the innerResult.

ServiceResult ( Opc.Ua.StatusCode code, ServiceResult innerResult ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, XmlQualifiedName symbolicId, Opc.Ua.LocalizedText localizedText ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, int index, DiagnosticInfoCollection diagnosticInfos, IList stringTable ) : System

Initializes the object with a status code and a diagnostic info structure.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Exception innerException ) : System

Constructs a object by specifying each property.

The innerException is used to construct the innerResult.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, Exception innerException ) : System

Constructs a object by specifying each property.

The innerException is used to construct the innerResult.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo ) : System

Constructs a object by specifying each property.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo, Exception innerException ) : System

Constructs a object by specifying each property.

The innerException is used to construct the inner result.

ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo, ServiceResult innerResult ) : System

Constructs a object by specifying each property.

ServiceResult ( uint code ) : System

Constructs a object from a StatusCode.

ToLongString ( ) : string

Returns a formatted string with the contents of exeception.

ToString ( ) : string

Converts the value to a human readable string.

Private Methods

Method Description
LookupString ( IList stringTable, int index ) : string

Looks up a string in a string table.

ServiceResult ( ) : System

Initializes the object with default values.

Method Details

BuildExceptionTrace() public static method

Returns a string containing all nested exceptions.
public static BuildExceptionTrace ( Exception exception ) : string
exception System.Exception
return string

Create() public static method

Creates a new instance of a ServiceResult
public static Create ( Exception e, TranslationInfo translation, uint defaultCode ) : ServiceResult
e System.Exception
translation TranslationInfo
defaultCode uint
return ServiceResult

Create() public static method

Creates a new instance of a ServiceResult
public static Create ( Exception e, uint defaultCode, string format ) : ServiceResult
e System.Exception
defaultCode uint
format string
return ServiceResult

Create() public static method

Creates a new instance of a ServiceResult
public static Create ( uint code, TranslationInfo translation ) : ServiceResult
code uint
translation TranslationInfo
return ServiceResult

Create() public static method

Creates a new instance of a ServiceResult
public static Create ( uint code, string format ) : ServiceResult
code uint
format string
return ServiceResult

IsBad() public static method

Returns true if the status code is bad.
public static IsBad ( ServiceResult status ) : bool
status ServiceResult
return bool

IsGood() public static method

Returns true if the status code is good.
public static IsGood ( ServiceResult status ) : bool
status ServiceResult
return bool

IsNotBad() public static method

Returns true if the status is good or uncertain.
public static IsNotBad ( ServiceResult status ) : bool
status ServiceResult
return bool

IsNotGood() public static method

Returns true if the status is bad or uncertain.
public static IsNotGood ( ServiceResult status ) : bool
status ServiceResult
return bool

IsNotUncertain() public static method

Returns true if the status is good or uncertain.
public static IsNotUncertain ( ServiceResult status ) : bool
status ServiceResult
return bool

IsUncertain() public static method

Returns true if the status code is uncertain.
public static IsUncertain ( ServiceResult status ) : bool
status ServiceResult
return bool

LookupSymbolicId() public static method

Looks up the symbolic name for a status code.
public static LookupSymbolicId ( uint code ) : string
code uint
return string

ServiceResult() public method

Constructs a object from an exception.
public ServiceResult ( Exception exception ) : System
exception System.Exception
return System

ServiceResult() public method

Constructs a object from an exception.
The code parameter is ignored for ServiceResultExceptions.
public ServiceResult ( Exception exception, uint defaultCode ) : System
exception System.Exception
defaultCode uint
return System

ServiceResult() public method

Constructs a object from an exception.
The defaultCode and defaultLocalizedText parameters are ignored for ServiceResultExceptions.
public ServiceResult ( Exception exception, uint defaultCode, Opc.Ua.LocalizedText defaultLocalizedText ) : System
exception System.Exception
defaultCode uint
defaultLocalizedText Opc.Ua.LocalizedText
return System

ServiceResult() public method

Constructs a object from an exception.
The code, symbolicId and namespaceUri parameters are ignored for ServiceResultExceptions.
public ServiceResult ( Exception exception, uint defaultCode, string defaultSymbolicId, string defaultNamespaceUri ) : System
exception System.Exception
defaultCode uint
defaultSymbolicId string
defaultNamespaceUri string
return System

ServiceResult() public method

Constructs a object from an exception.
The code, symbolicId, namespaceUri and localizedText parameters are ignored for ServiceResultExceptions.
public ServiceResult ( Exception e, uint defaultCode, string defaultSymbolicId, string defaultNamespaceUri, Opc.Ua.LocalizedText defaultLocalizedText ) : System
e System.Exception
defaultCode uint
defaultSymbolicId string
defaultNamespaceUri string
defaultLocalizedText Opc.Ua.LocalizedText
return System

ServiceResult() public method

Constructs a object from a StatusCode.
public ServiceResult ( Opc.Ua.StatusCode status ) : System
status Opc.Ua.StatusCode
return System

ServiceResult() public method

Initializes the object with a status code and a diagnostic info structure.
public ServiceResult ( Opc.Ua.StatusCode code, DiagnosticInfo diagnosticInfo, IList stringTable ) : System
code Opc.Ua.StatusCode
diagnosticInfo DiagnosticInfo
stringTable IList
return System

ServiceResult() public method

Constructs a object by specifying each property.
The innerException is used to construct the innerResult.
public ServiceResult ( Opc.Ua.StatusCode code, Exception innerException ) : System
code Opc.Ua.StatusCode
innerException System.Exception
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, Opc.Ua.LocalizedText localizedText ) : System
code Opc.Ua.StatusCode
localizedText Opc.Ua.LocalizedText
return System

ServiceResult() public method

Constructs a object by specifying each property.
The innerException is used to construct the innerResult.
public ServiceResult ( Opc.Ua.StatusCode code, Opc.Ua.LocalizedText localizedText, Exception innerException ) : System
code Opc.Ua.StatusCode
localizedText Opc.Ua.LocalizedText
innerException System.Exception
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, ServiceResult innerResult ) : System
code Opc.Ua.StatusCode
innerResult ServiceResult
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, XmlQualifiedName symbolicId, Opc.Ua.LocalizedText localizedText ) : System
code Opc.Ua.StatusCode
symbolicId System.Xml.XmlQualifiedName
localizedText Opc.Ua.LocalizedText
return System

ServiceResult() public method

Initializes the object with a status code and a diagnostic info structure.
public ServiceResult ( Opc.Ua.StatusCode code, int index, DiagnosticInfoCollection diagnosticInfos, IList stringTable ) : System
code Opc.Ua.StatusCode
index int
diagnosticInfos DiagnosticInfoCollection
stringTable IList
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
return System

ServiceResult() public method

Constructs a object by specifying each property.
The innerException is used to construct the innerResult.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Exception innerException ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
innerException System.Exception
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
localizedText Opc.Ua.LocalizedText
return System

ServiceResult() public method

Constructs a object by specifying each property.
The innerException is used to construct the innerResult.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, Exception innerException ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
localizedText Opc.Ua.LocalizedText
innerException System.Exception
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
localizedText Opc.Ua.LocalizedText
additionalInfo string
return System

ServiceResult() public method

Constructs a object by specifying each property.
The innerException is used to construct the inner result.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo, Exception innerException ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
localizedText Opc.Ua.LocalizedText
additionalInfo string
innerException System.Exception
return System

ServiceResult() public method

Constructs a object by specifying each property.
public ServiceResult ( Opc.Ua.StatusCode code, string symbolicId, string namespaceUri, Opc.Ua.LocalizedText localizedText, string additionalInfo, ServiceResult innerResult ) : System
code Opc.Ua.StatusCode
symbolicId string
namespaceUri string
localizedText Opc.Ua.LocalizedText
additionalInfo string
innerResult ServiceResult
return System

ServiceResult() public method

Constructs a object from a StatusCode.
public ServiceResult ( uint code ) : System
code uint
return System

ToLongString() public method

Returns a formatted string with the contents of exeception.
public ToLongString ( ) : string
return string

ToString() public method

Converts the value to a human readable string.
public ToString ( ) : string
return string