OPC Studio User's Guide and Reference
UACommunicationProfile Constructor(String,String,UAMessageSecurityModes,String,String)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UACommunicationProfile Class > UACommunicationProfile Constructor : UACommunicationProfile Constructor(String,String,UAMessageSecurityModes,String,String)
Specifies the name of the protocol of the endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

The transport profile URI string of the endpoint

The value of this parameter cannot be null (Nothing in Visual Basic).

Specifies which message security modes are used.
The security policy URI string of the endpoint

The value of this parameter cannot be null (Nothing in Visual Basic).

The name of the data encoding of the endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the class, specifying the protocol name, transport profile URI string, message security modes, security policy URI string, and data encoding name.
Syntax
'Declaration
 
Public Function New( _
   ByVal protocolName As String, _
   ByVal transportProfileUriString As String, _
   ByVal messageSecurityModes As UAMessageSecurityModes, _
   ByVal securityPolicyUriString As String, _
   ByVal dataEncodingName As String _
)
'Usage
 
Dim protocolName As String
Dim transportProfileUriString As String
Dim messageSecurityModes As UAMessageSecurityModes
Dim securityPolicyUriString As String
Dim dataEncodingName As String
 
Dim instance As New UACommunicationProfile(protocolName, transportProfileUriString, messageSecurityModes, securityPolicyUriString, dataEncodingName)

Parameters

protocolName
Specifies the name of the protocol of the endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

transportProfileUriString
The transport profile URI string of the endpoint

The value of this parameter cannot be null (Nothing in Visual Basic).

messageSecurityModes
Specifies which message security modes are used.
securityPolicyUriString
The security policy URI string of the endpoint

The value of this parameter cannot be null (Nothing in Visual Basic).

dataEncodingName
The name of the data encoding of the endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

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.

An invalid enumeration value was used.

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.

Remarks

Example values for messageSecurityModes:

For example values of securityPolicyUriString, see SecurityPolicyUriString.

For example values of transportProfileUriString, see TransportProfileUriString.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also