Reference
EndpointDescriptionExtensions Members
Provides extension methods to get and set the address and the security policy of an EndpointDescription.
Reference
EndpointDescriptionExtensions Members
- Type
- EndpointDescriptionExtensions
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Methods
GetAddress
Gets the URL of the endpoint specified.
public static Uri GetAddress(this EndpointDescription endpoint)Public Shared Function GetAddress(endpoint As EndpointDescription) As UriParameters
| Name | Type | Description |
|---|---|---|
endpoint | Endpoint | The endpoint whose URL is to be returned. |
Returns
The URL of the endpoint, or a null reference (Nothing in Visual Basic) if its URL is not an absolute URI.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint is a null reference ( |
GetEndpointPolicy
Gets the security policy of the endpoint specified.
public static OpcSecurityPolicy GetEndpointPolicy(
this EndpointDescription endpoint)Public Shared Function GetEndpointPolicy(
endpoint As EndpointDescription) As OpcSecurityPolicyParameters
| Name | Type | Description |
|---|---|---|
endpoint | Endpoint | The endpoint whose security policy is to be returned. |
Returns
A new OpcSecurityPolicy using the security mode and the security algorithm of the endpoint.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint is a null reference ( |
Remarks
A security policy URI of the endpoint which is not one of the algorithms of OpcSecurityAlgorithm results in the algorithm None.
SetAddress
Sets the URL of the endpoint to the address specified.
public static void SetAddress(this EndpointDescription endpoint, Uri address)Public Shared Sub SetAddress(endpoint As EndpointDescription, address As Uri)Parameters
| Name | Type | Description |
|---|---|---|
endpoint | Endpoint | The endpoint whose URL is to be set. |
address | Uri | The new URL of the endpoint, or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint is a null reference ( |
SetEndpointPolicy
Sets the security mode and the security policy URI of the endpoint to those of the endpointPolicy specified.
public static void SetEndpointPolicy(
this EndpointDescription endpoint,
OpcSecurityPolicy endpointPolicy)Public Shared Sub SetEndpointPolicy(
endpoint As EndpointDescription,
endpointPolicy As OpcSecurityPolicy)Parameters
| Name | Type | Description |
|---|---|---|
endpoint | Endpoint | The endpoint whose security policy is to be set. |
endpointPolicy | Opc | The security policy to use. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint or the endpointPolicy is a null reference ( |

