Reference
OpcDiscoveryClient Members
Reference
OpcDiscoveryClient Members
- Type
- OpcDiscoveryClient
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcDiscoveryClient
| Overload | Description |
|---|---|
| Opc | |
| Opc | |
| Opc | |
| Opc |
OpcDiscoveryClient()
public OpcDiscoveryClient()Public Sub New()OpcDiscoveryClient(string)
public OpcDiscoveryClient(string discoveryUrl)Public Sub New(discoveryUrl As String)Parameters
| Name | Type | Description |
|---|---|---|
discoveryUrl | String |
Exceptions
| Exception | Condition |
|---|---|
| Argument | |
| Argument | |
| FormatException |
OpcDiscoveryClient(Uri)
public OpcDiscoveryClient(Uri discoveryUrl)Public Sub New(discoveryUrl As Uri)Parameters
| Name | Type | Description |
|---|---|---|
discoveryUrl | Uri |
Exceptions
| Exception | Condition |
|---|---|
| Argument |
OpcDiscoveryClient(Uri, OpcApplicationConfiguration)
[CLSCompliant(false)]
public OpcDiscoveryClient(
Uri discoveryUrl,
OpcApplicationConfiguration configuration)<CLSCompliant(False)>
Public Sub New(
discoveryUrl As Uri,
configuration As OpcApplicationConfiguration)Parameters
| Name | Type | Description |
|---|---|---|
discoveryUrl | Uri | |
configuration | Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument |
Properties
Configuration
public OpcEndpointConfiguration Configuration { get; }Public ReadOnly Property Configuration As OpcEndpointConfigurationProperty value
DiscoveryUrl
public Uri DiscoveryUrl { get; }Public ReadOnly Property DiscoveryUrl As UriProperty value
Methods
Close
public OpcStatus Close()Public Function Close() As OpcStatusReturns
DiscoverEndpoints
| Overload | Description |
|---|---|
| Discover | Discovers the endpoints of the server ( |
| Discover | Discovers the endpoints of the server which use one of the transport profiles specified ( |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| OpcException | The server could not be reached or rejected the request, for example because it closed the channel during the handshake. The Code states the reason, such as Bad |
DiscoverEndpoints()
Discovers the endpoints of the server (OPC 10000-4, GetEndpoints).
public OpcEndpointDescriptionCollection DiscoverEndpoints()Public Function DiscoverEndpoints() As OpcEndpointDescriptionCollectionReturns
OpcEndpointDescriptionCollection
The endpoints the server returned.
DiscoverEndpoints(IEnumerable<string>)
Discovers the endpoints of the server which use one of the transport profiles specified (OPC 10000-4, GetEndpoints).
public OpcEndpointDescriptionCollection DiscoverEndpoints(
IEnumerable<string> profileUris)Public Function DiscoverEndpoints(
profileUris As IEnumerable(Of String)) As OpcEndpointDescriptionCollectionParameters
| Name | Type | Description |
|---|---|---|
profileUris | IEnumerable<String> | The URIs of the transport profiles the endpoints have to use, for example http://opcfoundation.. A null reference ( |
Returns
OpcEndpointDescriptionCollection
The endpoints the server returned for the profileUris.
DiscoverServers
| Overload | Description |
|---|---|
| DiscoverServers() | Discovers the servers known to the discovery server ( |
| DiscoverServers( | Discovers the servers known to the discovery server whose application URI is one of the URIs specified ( |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| OpcException | The server could not be reached or rejected the request, for example because it closed the channel during the handshake. The Code states the reason, such as Bad |
DiscoverServers()
Discovers the servers known to the discovery server (OPC 10000-4, FindServers).
public OpcApplicationDescriptionCollection DiscoverServers()Public Function DiscoverServers() As OpcApplicationDescriptionCollectionReturns
OpcApplicationDescriptionCollection
The servers the discovery server returned.
DiscoverServers(IEnumerable<string>)
Discovers the servers known to the discovery server whose application URI is one of the URIs specified (OPC 10000-4, FindServers).
public OpcApplicationDescriptionCollection DiscoverServers(
IEnumerable<string> serverUris)Public Function DiscoverServers(
serverUris As IEnumerable(Of String)) As OpcApplicationDescriptionCollectionParameters
| Name | Type | Description |
|---|---|---|
serverUris | IEnumerable<String> | The application URIs of the servers to discover. A null reference ( |
Returns
OpcApplicationDescriptionCollection
The servers the discovery server returned for the serverUris.
Dispose
| Overload | Description |
|---|---|
| Dispose() | Releases all resources used by the Opc |
| Dispose( | Releases the unmanaged resources used by the Opc |
Dispose()
Releases all resources used by the OpcDiscoveryClient.
public void Dispose()Public Sub Dispose()Implements
Dispose(bool)
Releases the unmanaged resources used by the OpcDiscoveryClient and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)Protected Overridable Sub Dispose(disposing As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
disposing | Boolean | The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources. |

