OPC Studio User's Guide and Reference
GetAncestors Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace > UACertificateTypeElementCollection Class : GetAncestors Method
The certificate type element for which the ancestors should be found.

The value of this parameter cannot be null (Nothing in Visual Basic).

Gets the sequence of certificate type elements that are ancestors of the given certificate type element.
Syntax
'Declaration
 
<JetBrains.Annotations.ItemNotNullAttribute()>
<JetBrains.Annotations.NotNullAttribute()>
Public Function GetAncestors( _
   ByVal certificateTypeElement As UACertificateTypeElement _
) As IEnumerable(Of UACertificateTypeElement)
'Usage
 
Dim instance As UACertificateTypeElementCollection
Dim certificateTypeElement As UACertificateTypeElement
Dim value As IEnumerable(Of UACertificateTypeElement)
 
value = instance.GetAncestors(certificateTypeElement)
[JetBrains.Annotations.ItemNotNull()]
[JetBrains.Annotations.NotNull()]
public IEnumerable<UACertificateTypeElement> GetAncestors( 
   UACertificateTypeElement certificateTypeElement
)
[JetBrains.Annotations.ItemNotNull()]
[JetBrains.Annotations.NotNull()]
public:
IEnumerable<UACertificateTypeElement^>^ GetAncestors( 
   UACertificateTypeElement^ certificateTypeElement
) 

Parameters

certificateTypeElement
The certificate type element for which the ancestors should be found.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

Returns a sequence of ancestors of certificateTypeElement, starting with its UACertificateTypeElement.BaseCertificateTypeId, if specified, and proceeding recursively to its ancestors as well.

This method never returns null (Nothing in Visual Basic).

The individual elements of the returned value are never null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also