Skip to content

Reference

OpcStatusCollection Members

Representes a collection of OpcStatus instances.

Reference

OpcStatusCollection Members ​

Type
OpcStatusCollection
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from OpcCollection<OpcStatus, StatusCode, StatusCodeCollection>, Collection<OpcStatus>.

Constructors ​

OpcStatusCollection ​

6 overloads

OverloadDescription
OpcStatusCollection()Initializes a new instance of the OpcStatusCollection class.
OpcStatusCollection(IList<OpcStatus>)Initializes a new instance of the OpcStatusCollection class as a wrapper for the specified list.
OpcStatusCollection(IEnumerable<OpcStatus>)Initializes a new instance of the OpcStatusCollection class with the items specified.
OpcStatusCollection(params OpcStatus[])Initializes a new instance of the OpcStatusCollection class with the items specified.
OpcStatusCollection(IEnumerable<OpcStatusCode>)Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.
OpcStatusCollection(params OpcStatusCode[])Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.

OpcStatusCollection() ​

Initializes a new instance of the OpcStatusCollection class.

csharp
public OpcStatusCollection()
vbnet
Public Sub New()

OpcStatusCollection(IList<OpcStatus>) ​

Initializes a new instance of the OpcStatusCollection class as a wrapper for the specified list.

csharp
public OpcStatusCollection(IList<OpcStatus> list)
vbnet
Public Sub New(list As IList(Of OpcStatus))

Parameters

NameTypeDescription
listIList<OpcStatus>The IList<T> of OpcStatus instances to wrap.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe list is a null reference (Nothing in Visual Basic).

OpcStatusCollection(IEnumerable<OpcStatus>) ​

Initializes a new instance of the OpcStatusCollection class with the items specified.

csharp
public OpcStatusCollection(IEnumerable<OpcStatus> items)
vbnet
Public Sub New(items As IEnumerable(Of OpcStatus))

Parameters

NameTypeDescription
itemsIEnumerable<OpcStatus>The IEnumerable<T> of OpcStatus instances to use as the initial items of the collection.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe items is a null reference (Nothing in Visual Basic).

OpcStatusCollection(params OpcStatus[]) ​

Initializes a new instance of the OpcStatusCollection class with the items specified.

csharp
public OpcStatusCollection(params OpcStatus[] items)
vbnet
Public Sub New(ParamArray items As OpcStatus())

Parameters

NameTypeDescription
itemsparams OpcStatus[]An array of OpcStatus items to use as the initial items of the collection.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe items is a null reference (Nothing in Visual Basic).

OpcStatusCollection(IEnumerable<OpcStatusCode>) ​

Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.

csharp
public OpcStatusCollection(IEnumerable<OpcStatusCode> statusCodes)
vbnet
Public Sub New(statusCodes As IEnumerable(Of OpcStatusCode))

Parameters

NameTypeDescription
statusCodesIEnumerable<OpcStatusCode>The IEnumerable<T> of OpcStatusCode values from which the according OpcStatus instances where created and added as the initial items of the collection.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe statusCodes is a null reference (Nothing in Visual Basic).

OpcStatusCollection(params OpcStatusCode[]) ​

Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.

csharp
public OpcStatusCollection(params OpcStatusCode[] statusCodes)
vbnet
Public Sub New(ParamArray statusCodes As OpcStatusCode())

Parameters

NameTypeDescription
statusCodesparams OpcStatusCode[]An array of OpcStatusCode values to use to create the according OpcStatus instances which are added as the initial items of the collection.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe statusCodes is a null reference (Nothing in Visual Basic).

Methods ​

Add ​

Adds a new item to the end of the collection using the statusCode specified.

csharp
public OpcStatus Add(OpcStatusCode statusCode)
vbnet
Public Function Add(statusCode As OpcStatusCode) As OpcStatus

Parameters

NameTypeDescription
statusCodeOpcStatusCodeThe OpcStatusCode value to use to create a new OpcStatus instance which is then added to the end of the collection.

Returns

OpcStatus

A new instance of the OpcStatus class initialized with the statusCode specified and added to the end of the collection.

Create ​

static

Creates a new instance of the OpcStatusCollection with a initial number of items defined by count, where each item represents an instance of the OpcStatus class initialized using the statusCode passed.

csharp
[CLSCompliant(false)]
public static OpcStatusCollection Create(OpcStatusCode statusCode, int count)
vbnet
<CLSCompliant(False)>
Public Shared Function Create(
    statusCode As OpcStatusCode,
    count As Integer) As OpcStatusCollection

Parameters

NameTypeDescription
statusCodeOpcStatusCodeThe OpcStatusCode value to use for the items to add as the initial entries of the collection to create.
countInt32The number of items to create from the statusCode specified to add as the initial entries of the collection to create.

Returns

OpcStatusCollection

A new instance of the OpcStatusCollection class initialized with the number of items specified by count, where each instance of the OpcStatus in this collection has been created from the statusCode passed.