'Declaration
Sub QueryServers( _ ByVal gdsEndpointDescriptor As Object, _ ByVal startingRecordId As Integer, _ ByVal maximumRecordsToReturn As Integer, _ ByVal applicationName As String, _ ByVal applicationUriString As String, _ ByVal productUriString As String, _ ByVal serverCapabilities As Object, _ ByRef lastCounterResetTime As Date, _ ByRef serverOnNetworkArray As Object _ )
'Usage
Dim instance As _EasyUAGlobalDiscoveryClient Dim gdsEndpointDescriptor As Object Dim startingRecordId As Integer Dim maximumRecordsToReturn As Integer Dim applicationName As String Dim applicationUriString As String Dim productUriString As String Dim serverCapabilities As Object Dim lastCounterResetTime As Date Dim serverOnNetworkArray As Object instance.QueryServers(gdsEndpointDescriptor, startingRecordId, maximumRecordsToReturn, applicationName, applicationUriString, productUriString, serverCapabilities, lastCounterResetTime, serverOnNetworkArray)
void QueryServers( object gdsEndpointDescriptor, int startingRecordId, int maximumRecordsToReturn, string applicationName, string applicationUriString, string productUriString, object serverCapabilities, out DateTime lastCounterResetTime, out object serverOnNetworkArray )
void QueryServers( Object^ gdsEndpointDescriptor, int startingRecordId, int maximumRecordsToReturn, String^ applicationName, String^ applicationUriString, String^ productUriString, Object^ serverCapabilities, [Out] DateTime lastCounterResetTime, [Out] Object^ 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. - maximumRecordsToReturn
- The maximum number of records to return in the response.
0 indicates that there is no limit. - 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 can 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 can 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 can 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).