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



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

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

When not a null reference, specifies the transport profile of the endpoint.

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

Specifies which message security modes are used.
When not a null reference, specifies the security policy URI of the endpoint.

The value of this parameter can 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, message security modes, security policy URI, and data encoding name.
Syntax
'Declaration
 
Public Function New( _
   ByVal protocolName As String, _
   ByVal transportProfileUri As Uri, _
   ByVal messageSecurityModes As UAMessageSecurityModes, _
   ByVal securityPolicyUri As Uri, _
   ByVal dataEncodingName As String _
)
'Usage
 
Dim protocolName As String
Dim transportProfileUri As Uri
Dim messageSecurityModes As UAMessageSecurityModes
Dim securityPolicyUri As Uri
Dim dataEncodingName As String
 
Dim instance As New UACommunicationProfile(protocolName, transportProfileUri, messageSecurityModes, securityPolicyUri, dataEncodingName)

Parameters

protocolName
Specifies the name of the protocol of the endpoint.

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

transportProfileUri
When not a null reference, specifies the transport profile of the endpoint.

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

messageSecurityModes
Specifies which message security modes are used.
securityPolicyUri
When not a null reference, specifies the security policy URI of the endpoint.

The value of this parameter can 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 securityPolicyUri, see SecurityPolicyUriString.

For example values of transportProfileUri, 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