Skip to content

Reference

OpcEndpointIdentity Members

Represents the identity of an endpoint, which consists of its URL and its security policy.

Reference

OpcEndpointIdentity Members ​

Type
OpcEndpointIdentity
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Constructors ​

OpcEndpointIdentity ​

2 overloads

OverloadDescription
OpcEndpointIdentity(string, OpcSecurityPolicy)Initializes a new instance of the OpcEndpointIdentity class using the url and policy specified.
OpcEndpointIdentity(Uri, OpcSecurityPolicy)Initializes a new instance of the OpcEndpointIdentity class using the url and policy specified.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe url or the policy is a null reference (Nothing in Visual Basic).

OpcEndpointIdentity(string, OpcSecurityPolicy) ​

Initializes a new instance of the OpcEndpointIdentity class using the url and policy specified.

csharp
public OpcEndpointIdentity(string url, OpcSecurityPolicy policy)
vbnet
Public Sub New(url As String, policy As OpcSecurityPolicy)

Parameters

NameTypeDescription
urlStringThe URL of the endpoint.
policyOpcSecurityPolicyThe security policy of the endpoint.

Exceptions

ExceptionCondition
FormatExceptionThe url is not a valid absolute URI.

OpcEndpointIdentity(Uri, OpcSecurityPolicy) ​

Initializes a new instance of the OpcEndpointIdentity class using the url and policy specified.

csharp
public OpcEndpointIdentity(Uri url, OpcSecurityPolicy policy)
vbnet
Public Sub New(url As Uri, policy As OpcSecurityPolicy)

Parameters

NameTypeDescription
urlUriThe URL of the endpoint.
policyOpcSecurityPolicyThe security policy of the endpoint.

Properties ​

Policy ​

Gets the security policy of the endpoint.

csharp
public OpcSecurityPolicy Policy { get; }
vbnet
Public ReadOnly Property Policy As OpcSecurityPolicy

Property value

OpcSecurityPolicy

The security policy of the endpoint.

Url ​

Gets the URL of the endpoint.

csharp
public Uri Url { get; }
vbnet
Public ReadOnly Property Url As Uri

Property value

Uri

The URL of the endpoint.

Methods ​

GetCurrent ​

static

Gets the identity of the endpoint through which the server is receiving the request processed by the current thread.

csharp
public static OpcEndpointIdentity GetCurrent()
vbnet
Public Shared Function GetCurrent() As OpcEndpointIdentity

Returns

OpcEndpointIdentity

The OpcEndpointIdentity of the endpoint, or a null reference (Nothing in Visual Basic) if the current thread does not process a request of a secure channel.

ToString ​

override

Returns a string that represents the endpoint.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string containing the Url and the URI of the Policy.

Overrides

ToString()