QuickOPC User's Guide and Reference
AccessReadOnlySecurityKeyService Method (_EasyUAPublishSubscribeClient)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.InformationModel.ComTypes Namespace > _EasyUAPublishSubscribeClient Interface : 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
 
<NotNullAttribute()>
Function AccessReadOnlySecurityKeyService( _
   ByVal endpointDescriptor As Object _
) As _UAReadOnlyPubSubSecurityKeyService
'Usage
 
Dim instance As _EasyUAPublishSubscribeClient
Dim endpointDescriptor As Object
Dim value As _UAReadOnlyPubSubSecurityKeyService
 
value = instance.AccessReadOnlySecurityKeyService(endpointDescriptor)
[NotNull()]
_UAReadOnlyPubSubSecurityKeyService AccessReadOnlySecurityKeyService( 
   object endpointDescriptor
)
[NotNull()]
_UAReadOnlyPubSubSecurityKeyService^ AccessReadOnlySecurityKeyService( 
   Object^ 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