OPC Studio User's Guide and Reference
AccessReadOnlySecurityKeyService Method (EasyUAPublishSubscribeClientCore)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.InformationModel Namespace > EasyUAPublishSubscribeClientCore Class : AccessReadOnlySecurityKeyService Method
The endpoint descriptor of the OPC UA server containing the PubSub Security Key Service (SKS) model.
Gives read-only access to PubSub security key service (SKS) provided by the specified OPC UA server.
Syntax
'Declaration
 
Public Function AccessReadOnlySecurityKeyService( _
   ByVal endpointDescriptor As UAEndpointDescriptor _
) As IUAReadOnlyPubSubSecurityKeyService
'Usage
 
Dim instance As EasyUAPublishSubscribeClientCore
Dim endpointDescriptor As UAEndpointDescriptor
Dim value As IUAReadOnlyPubSubSecurityKeyService
 
value = instance.AccessReadOnlySecurityKeyService(endpointDescriptor)

Parameters

endpointDescriptor
The endpoint descriptor of the OPC UA server containing the PubSub Security Key Service (SKS) model.

Return Value

Returns an interface that provides read-only access to PubSub security key service (SKS) .
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.

Remarks

You can use the HasConfigurationModel method to determine whether the given server provides a PubSub Security Key Service (SKS) model. Operations on the returned OpcLabs.EasyOpc.UA.PubSub.SecurityKeyService.IUAReadOnlyPubSubSecurityKeyService will fail if it does not.

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