Reference
OpcSecurityPolicyCollection Members
Represents a collection of the security policies of endpoints (see EndpointPolicies).
Reference
OpcSecurityPolicyCollection Members
- Type
- OpcSecurityPolicyCollection
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Constructors
OpcSecurityPolicyCollection
Initializes a new instance of the OpcSecurityPolicyCollection class, which is empty.
public OpcSecurityPolicyCollection()Public Sub New()Properties
Count
Gets the number of security policies in the collection.
public int Count { get; }Public ReadOnly Property Count As IntegerProperty value
The number of security policies in the collection.
Implements
IsReadOnly
Gets a value indicating whether the collection is read-only.
public bool IsReadOnly { get; }Public ReadOnly Property IsReadOnly As BooleanProperty value
Always the value false.
Implements
Methods
Add
Adds the security policy specified to the end of the collection.
public void Add(OpcSecurityPolicy item)Public Sub Add(item As OpcSecurityPolicy)Parameters
| Name | Type | Description |
|---|---|---|
item | Opc | The security policy to add. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item is a null reference ( |
Implements
Clear
Removes all security policies from the collection.
public void Clear()Public Sub Clear()Implements
Contains
Determines whether the collection contains the security policy specified.
public bool Contains(OpcSecurityPolicy item)Public Function Contains(item As OpcSecurityPolicy) As BooleanParameters
| Name | Type | Description |
|---|---|---|
item | Opc | The security policy to locate. |
Returns
The value true if the collection contains the item; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item is a null reference ( |
Implements
CopyTo
Copies the security policies of the collection to the array specified, starting at the arrayIndex specified.
public void CopyTo(OpcSecurityPolicy[] array, int arrayIndex)Public Sub CopyTo(array As OpcSecurityPolicy(), arrayIndex As Integer)Parameters
| Name | Type | Description |
|---|---|---|
array | Opc | The array to copy the security policies to. |
arrayIndex | Int32 | The zero-based index in the array at which copying begins. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The array is a null reference ( |
| Argument | The arrayIndex is less than zero. |
| Argument | The number of security policies in the collection is greater than the space from arrayIndex to the end of the array. |
Implements
CopyTo(OpcSecurityPolicy[], int)
GetEnumerator
Returns an enumerator that iterates through the security policies of the collection.
public IEnumerator<OpcSecurityPolicy> GetEnumerator()Public Function GetEnumerator() As IEnumerator(Of OpcSecurityPolicy)Returns
IEnumerator<OpcSecurityPolicy>
An enumerator for the security policies of the collection.
Implements
IndexOf
Determines the index of the security policy specified in the collection.
public int IndexOf(OpcSecurityPolicy item)Public Function IndexOf(item As OpcSecurityPolicy) As IntegerParameters
| Name | Type | Description |
|---|---|---|
item | Opc | The security policy to locate. |
Returns
The zero-based index of the item, or -1 if the collection does not contain it.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item is a null reference ( |
Implements
Insert
Inserts the security policy specified at the index specified.
public void Insert(int index, OpcSecurityPolicy item)Public Sub Insert(index As Integer, item As OpcSecurityPolicy)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index at which the item is to be inserted. |
item | Opc | The security policy to insert. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item is a null reference ( |
| Argument | The index is less than zero or greater than Count. |
Implements
Insert(int, OpcSecurityPolicy)
Remove
Removes the security policy specified from the collection.
public bool Remove(OpcSecurityPolicy item)Public Function Remove(item As OpcSecurityPolicy) As BooleanParameters
| Name | Type | Description |
|---|---|---|
item | Opc | The security policy to remove. |
Returns
The value true if the item has been removed; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The item is a null reference ( |
Implements
RemoveAt
Removes the security policy at the index specified.
public void RemoveAt(int index)Public Sub RemoveAt(index As Integer)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the security policy to remove. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The index is less than zero or not less than Count. |
Implements
Indexers
Item
Gets or sets the security policy at the index specified.
public OpcSecurityPolicy this[int index] { get; set; }Public Default Property this[](index As Integer) As OpcSecurityPolicyParameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the security policy. |
Property value
The security policy at the index.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value to set is a null reference ( |
| Argument | The index is less than zero or not less than Count. |
Implements

