Connectivity Software User's Guide and Reference
DeepenByApplicationOrServerName Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UADiscoveryElementCollection Class : DeepenByApplicationOrServerName Method
The flat collection of discovery elements to group.

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

Groups discovery elements by application URI and application/server name, consolidating multiple discovery URIs into single elements.
Syntax
'Declaration
 
<JetBrains.Annotations.ItemNotNullAttribute()>
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function DeepenByApplicationOrServerName( _
   ByVal flatDiscoveryElements As IEnumerable(Of UADiscoveryElement) _
) As UADiscoveryElementCollection
'Usage
 
Dim flatDiscoveryElements As IEnumerable(Of UADiscoveryElement)
Dim value As UADiscoveryElementCollection
 
value = UADiscoveryElementCollection.DeepenByApplicationOrServerName(flatDiscoveryElements)
[JetBrains.Annotations.ItemNotNull()]
[JetBrains.Annotations.NotNull()]
public static UADiscoveryElementCollection DeepenByApplicationOrServerName( 
   IEnumerable<UADiscoveryElement> flatDiscoveryElements
)
[JetBrains.Annotations.ItemNotNull()]
[JetBrains.Annotations.NotNull()]
public:
static UADiscoveryElementCollection^ DeepenByApplicationOrServerName( 
   IEnumerable<UADiscoveryElement^>^ flatDiscoveryElements
) 

Parameters

flatDiscoveryElements
The flat collection of discovery elements to group.

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

Return Value

A collection of discovery elements with consolidated discovery URIs for each unique application.

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

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

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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