EasyUA Reference
FindServersOnNetwork Method
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > UaClient Class : FindServersOnNetwork Method

LdsMachine
The computer to be searched. Null or an empty sting identifies the local machine.
startingRecordId
Only records with an identifier greater than this number will be returned. Specify 0 to start with the first record in the cache.
maxRecordsToReturn
The maximum number of records to return in the response. 0 indicates that there is no limit.
serverCapabilityFilter
List of Server capability filters. The set of allowed server capabilities are defined in ServerCapabilities class. Only records with all of the specified server capabilities are returned. The comparison is case insensitive. If this list is empty then no filtering is performed.

Glossary Item Box

Find the UA servers from a Local Discovery Server (LDS). The LDS URLs are defined in the UA configuration as WellKnownDiscoveryUrls. The ApplicationDesciption is returned for each found server.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As UaClient
Dim LdsMachine As String
Dim startingRecordId As UInteger
Dim maxRecordsToReturn As UInteger
Dim serverCapabilityFilter As StringCollection
Dim value As ServerOnNetworkCollection
 
value = instance.FindServersOnNetwork(LdsMachine, startingRecordId, maxRecordsToReturn, serverCapabilityFilter)
C# 
public ServerOnNetworkCollection FindServersOnNetwork( 
   string LdsMachine,
   uint startingRecordId,
   uint maxRecordsToReturn,
   StringCollection serverCapabilityFilter
)

Parameters

LdsMachine
The computer to be searched. Null or an empty sting identifies the local machine.
startingRecordId
Only records with an identifier greater than this number will be returned. Specify 0 to start with the first record in the cache.
maxRecordsToReturn
The maximum number of records to return in the response. 0 indicates that there is no limit.
serverCapabilityFilter
List of Server capability filters. The set of allowed server capabilities are defined in ServerCapabilities class. Only records with all of the specified server capabilities are returned. The comparison is case insensitive. If this list is empty then no filtering is performed.

Return Value

A list with the descriptions of the found UA servers.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.