'Declaration
Public Sub QueryApplications( _ ByVal gdsEndpointDescriptor As UAEndpointDescriptor, _ ByVal startingRecordId As Long, _ ByVal maximumRecordsToReturn As Long, _ ByVal applicationName As String, _ ByVal applicationUriString As String, _ ByVal applicationTypes As UAApplicationTypes, _ ByVal productUriString As String, _ ByVal serverCapabilities As IEnumerable(Of String), _ ByRef lastCounterResetTime As Date, _ ByRef nextRecordId As Long, _ ByRef applications() As UAApplicationDescription _ )
'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 applicationTypes As UAApplicationTypes Dim productUriString As String Dim serverCapabilities As IEnumerable(Of String) Dim lastCounterResetTime As Date Dim nextRecordId As Long Dim applications() As UAApplicationDescription instance.QueryApplications(gdsEndpointDescriptor, startingRecordId, maximumRecordsToReturn, applicationName, applicationUriString, applicationTypes, productUriString, serverCapabilities, lastCounterResetTime, nextRecordId, applications)
public void QueryApplications( UAEndpointDescriptor gdsEndpointDescriptor, long startingRecordId, long maximumRecordsToReturn, string applicationName, string applicationUriString, UAApplicationTypes applicationTypes, string productUriString, IEnumerable<string> serverCapabilities, out DateTime lastCounterResetTime, out long nextRecordId, out UAApplicationDescription[] applications )
public: void QueryApplications( UAEndpointDescriptor^ gdsEndpointDescriptor, int64 startingRecordId, int64 maximumRecordsToReturn, String^ applicationName, String^ applicationUriString, UAApplicationTypes applicationTypes, String^ productUriString, IEnumerable<String^>^ serverCapabilities, [Out] DateTime lastCounterResetTime, [Out] int64 nextRecordId, [Out] array<UAApplicationDescription^>^ 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.
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 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 cannot 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 cannot 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).