'Declaration
Sub QueryApplications( _ ByVal gdsEndpointDescriptor As Object, _ ByVal startingRecordId As Integer, _ ByVal maximumRecordsToReturn As Integer, _ ByVal applicationName As String, _ ByVal applicationUriString As String, _ ByVal applicationTypes As UAApplicationTypes, _ ByVal productUriString As String, _ ByVal serverCapabilities As Object, _ ByRef lastCounterResetTime As Date, _ ByRef nextRecordId As Integer, _ ByRef applications 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 applicationTypes As UAApplicationTypes Dim productUriString As String Dim serverCapabilities As Object Dim lastCounterResetTime As Date Dim nextRecordId As Integer Dim applications As Object instance.QueryApplications(gdsEndpointDescriptor, startingRecordId, maximumRecordsToReturn, applicationName, applicationUriString, applicationTypes, productUriString, serverCapabilities, lastCounterResetTime, nextRecordId, applications)
void QueryApplications( object gdsEndpointDescriptor, int startingRecordId, int maximumRecordsToReturn, string applicationName, string applicationUriString, UAApplicationTypes applicationTypes, string productUriString, object serverCapabilities, out DateTime lastCounterResetTime, out int nextRecordId, out object applications )
void QueryApplications( Object^ gdsEndpointDescriptor, int startingRecordId, int maximumRecordsToReturn, String^ applicationName, String^ applicationUriString, UAApplicationTypes applicationTypes, String^ productUriString, Object^ serverCapabilities, [Out] DateTime lastCounterResetTime, [Out] int nextRecordId, [Out] Object^ applications )
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 applications 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). - applicationTypes
- A mask indicating what types of applications are returned.
If the mask is OpcLabs.EasyOpc.UA.Discovery.UAApplicationTypes.None then all applications are returned. - productUriString
- The ProductUri 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 value of this parameter can be
null
(Nothing
in Visual Basic). - serverCapabilities
- The capabilities supported by the applications returned.
The applications returned shall support all the capabilities specified.
If no capabilities are provided this filter is not used.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). - lastCounterResetTime
- The last time the counters were reset.
- nextRecordId
- The identifier of the next record. It is passed as the startingRecordId in subsequent calls to QueryApplications to fetch the next batch of records. It is 0 if there are no more records to return.
- applications
- A list of Applications (OpcLabs.EasyOpc.UA.Discovery.UAApplicationDescription) which meet the criteria.
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).