Parameters
- discoveryQuery
- Specifies a discovery query.
Exception | Description |
---|---|
System.ArgumentNullException |
A This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
OpcLabs.EasyOpc.UA.OperationModel.UAException | The OPC UA operation has failed. This operation exception in uniformly used to allow common handling of various kinds of errors. The System.Exception.InnerException always contains information about the actual error cause. This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately. |
This is a generic method that allows for different types of discovery queries. In most cases, it is more practical to use an (extension) method that is already tailored to a concrete type of query, e.g. IEasyUAClientExtension.DiscoverLocalApplications, IEasyUAClientExtension.DiscoverLocalServers, or IEasyUAClientExtension.FindLocalApplications.
See also in Knowledge Base: Technical note-OPC UA Discovery in QuickOPC.