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
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opc |
| Opc | Initializes a new instance of the Opclist. |
| Opc | Initializes a new instance of the Opcitems specified. |
| Opc | Initializes a new instance of the Opcitems specified. |
| Opc | Initializes a new instance of the OpcstatusCodes specified. |
| Opc | Initializes a new instance of the OpcstatusCodes specified. |
OpcStatusCollection()
Initializes a new instance of the OpcStatusCollection class.
public OpcStatusCollection()Public Sub New()OpcStatusCollection(IList<OpcStatus>)
Initializes a new instance of the OpcStatusCollection class as a wrapper for the specified list.
public OpcStatusCollection(IList<OpcStatus> list)Public Sub New(list As IList(Of OpcStatus))Parameters
| Name | Type | Description |
|---|---|---|
list | IList<OpcStatus> | The IList< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The list is a null reference ( |
OpcStatusCollection(IEnumerable<OpcStatus>)
Initializes a new instance of the OpcStatusCollection class with the items specified.
public OpcStatusCollection(IEnumerable<OpcStatus> items)Public Sub New(items As IEnumerable(Of OpcStatus))Parameters
| Name | Type | Description |
|---|---|---|
items | IEnumerable<OpcStatus> | The IEnumerable< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The items is a null reference ( |
OpcStatusCollection(params OpcStatus[])
Initializes a new instance of the OpcStatusCollection class with the items specified.
public OpcStatusCollection(params OpcStatus[] items)Public Sub New(ParamArray items As OpcStatus())Parameters
| Name | Type | Description |
|---|---|---|
items | params OpcStatus[] | An array of OpcStatus items to use as the initial items of the collection. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The items is a null reference ( |
OpcStatusCollection(IEnumerable<OpcStatusCode>)
Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.
public OpcStatusCollection(IEnumerable<OpcStatusCode> statusCodes)Public Sub New(statusCodes As IEnumerable(Of OpcStatusCode))Parameters
| Name | Type | Description |
|---|---|---|
statusCodes | IEnumerable<OpcStatusCode> | The IEnumerable< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The statusCodes is a null reference ( |
OpcStatusCollection(params OpcStatusCode[])
Initializes a new instance of the OpcStatusCollection class with the statusCodes specified.
public OpcStatusCollection(params OpcStatusCode[] statusCodes)Public Sub New(ParamArray statusCodes As OpcStatusCode())Parameters
| Name | Type | Description |
|---|---|---|
statusCodes | params 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
| Exception | Condition |
|---|---|
| Argument | The statusCodes is a null reference ( |
Methods
Add
Adds a new item to the end of the collection using the statusCode specified.
public OpcStatus Add(OpcStatusCode statusCode)Public Function Add(statusCode As OpcStatusCode) As OpcStatusParameters
| Name | Type | Description |
|---|---|---|
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.
Create
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.
[CLSCompliant(false)]
public static OpcStatusCollection Create(OpcStatusCode statusCode, int count)<CLSCompliant(False)>
Public Shared Function Create(
statusCode As OpcStatusCode,
count As Integer) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
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.

