Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcStatusCollection type exposes the following members.
Initializes a new instance of the OpcStatusCollection class with the items
specified.
C#
public OpcStatusCollection(IEnumerable<OpcStatus> items)
Parameters
items
IEnumerable<OpcStatus>
The IEnumerable´1 of OpcStatus instances to use as the initial items of the collection.
Exceptions
The items
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcStatusCollection class with the statusCodes
specified.
C#
public OpcStatusCollection(IEnumerable<OpcStatusCode> statusCodes)
Parameters
statusCodes
IEnumerable<OpcStatusCode>
The IEnumerable´1 of OpcStatusCode values from which the according OpcStatus instances where created and added as the initial items of the collection.
Exceptions
The statusCodes
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcStatusCollection class as a wrapper for the specified list
.
C#
public OpcStatusCollection(IList<OpcStatus> list)
Parameters
The IList´1 of OpcStatus instances to wrap.
Exceptions
The list
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcStatusCollection class with the items
specified.
C#
public OpcStatusCollection(params OpcStatus[] items)
Parameters
items
OpcStatus[]
An array of OpcStatus items to use as the initial items of the collection.
Exceptions
The items
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcStatusCollection class with the statusCodes
specified.
C#
public OpcStatusCollection(params OpcStatusCode[] statusCodes)
Parameters
statusCodes
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
The statusCodes
is a null reference (Nothing in Visual Basic).
Adds a new item to the end of the collection using the statusCode
specified.
C#
public OpcStatus Add(OpcStatusCode statusCode)
Parameters
statusCode
OpcStatusCode
The OpcStatusCode value to use to create a new OpcStatus instance which is then added to the end of the collection.
Returns
A new instance of the OpcStatus class initialized with the statusCode
specified and added to the end of the collection.
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.
C#
[CLSCompliant(false)] public static OpcStatusCollection Create(OpcStatusCode statusCode, int count)
Parameters
statusCode
OpcStatusCode
The OpcStatusCode value to use for the items to add as the initial entries of the collection to create.
count
Int32
The number of items to create from the statusCode
specified to add as the initial entries of the collection to create.
Returns
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.