'Declaration
Public Sub QueryServers( _ ByVal gdsEndpointDescriptor As UAEndpointDescriptor, _ ByVal startingRecordId As Long, _ ByVal maximumRecordsToReturn As Long, _ ByVal applicationName As String, _ ByVal applicationUriString As String, _ ByVal productUriString As String, _ ByVal serverCapabilities As IEnumerable(Of String), _ ByRef lastCounterResetTime As Date, _ ByRef serverOnNetworkArray() As UAServerOnNetwork _ )
'Usage
Dim instance As EasyUAGlobalDiscoveryClientCore Dim gdsEndpointDescriptor As UAEndpointDescriptor Dim startingRecordId As Long Dim maximumRecordsToReturn As Long Dim applicationName As String Dim applicationUriString As String Dim productUriString As String Dim serverCapabilities As IEnumerable(Of String) Dim lastCounterResetTime As Date Dim serverOnNetworkArray() As UAServerOnNetwork instance.QueryServers(gdsEndpointDescriptor, startingRecordId, maximumRecordsToReturn, applicationName, applicationUriString, productUriString, serverCapabilities, lastCounterResetTime, serverOnNetworkArray)
public void QueryServers( UAEndpointDescriptor gdsEndpointDescriptor, long startingRecordId, long maximumRecordsToReturn, string applicationName, string applicationUriString, string productUriString, IEnumerable<string> serverCapabilities, out DateTime lastCounterResetTime, out UAServerOnNetwork[] serverOnNetworkArray )
public: void QueryServers( UAEndpointDescriptor^ gdsEndpointDescriptor, int64 startingRecordId, int64 maximumRecordsToReturn, String^ applicationName, String^ applicationUriString, String^ productUriString, IEnumerable<String^>^ serverCapabilities, [Out] DateTime lastCounterResetTime, [Out] array<UAServerOnNetwork^>^ serverOnNetworkArray )
Parameters
- gdsEndpointDescriptor
- Endpoint descriptor. Identifies the OPC-UA server. The server must be a Global Directory Server (GDS).
Because the OpcLabs.EasyOpc.UA.UAEndpointDescriptor has implicit conversions from System.String and System.Uri, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the endpoint URL, or a so-called OPC UA endpoint descriptor string), or a System.Uri object, in place of this parameter, and the corresponding endpoint descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.UAEndpointDescriptor.FromString or OpcLabs.EasyOpc.UA.UAEndpointDescriptor.FromUri static method instead.
Also, because the OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement and OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement have an implicit conversion to OpcLabs.EasyOpc.UA.UAEndpointDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement or OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement (results from OPC UA discovery) in place of this parameter, and the corresponding endpoint descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can convert a (non-null) OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement or OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement to OpcLabs.EasyOpc.UA.UAEndpointDescriptor using the ToUAEndpointDescriptor or ToUAEndpointDescriptor method instead.
If you are using OPC Wizard (for server development), an implicit conversion from OpcLabs.EasyOpc.UA.EasyUAServerCore can be used in the same way to simply pass the server object in place of this parameter, which will use its OpcLabs.EasyOpc.UA.EasyUAServerCore.EffectiveServerDescriptor property for the connection.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - startingRecordId
- Only records with an identifier greater than this number will be returned.
Specify 0 to start with the first record in the database.Valid values of this parameter are in the range from
0
to4294967295
. - maximumRecordsToReturn
- The maximum number of records to return in the response.
0 indicates that there is no limit.Valid values of this parameter are in the range from
0
to4294967295
. - applicationName
- The ApplicationName of the applications to return.
Supports the syntax used by the LIKE FilterOperator described in Part 4.
Not used if an empty string is specified. The filter is only applied to the default ApplicationName.The value of this parameter cannot be
null
(Nothing
in Visual Basic). - applicationUriString
- The ApplicationUri of the servers to return.
Supports the syntax used by the LIKE FilterOperator described in Part 4.
Not used if an empty string is specified.The value of this parameter cannot be
null
(Nothing
in Visual Basic). - productUriString
- The ProductUri of the servers to return.
Supports the syntax used by the LIKE FilterOperator described in Part 4.
Not used if an empty string is specified.The value of this parameter cannot be
null
(Nothing
in Visual Basic). - serverCapabilities
- The capabilities supported by the applications returned. If no server capabilities are provided this filter is not used.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - lastCounterResetTime
- The last time the counters were reset.
- serverOnNetworkArray
- A list of Servers which meet the criteria (OpcLabs.EasyOpc.UA.Discovery.UAServerOnNetwork).
The value of this parameter cannot be
null
(Nothing
in Visual Basic).The individual elements of the parameter value cannot be
null
(Nothing
in Visual Basic).