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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.InformationModel.ComTypes Namespace > _EasyUAPublishSubscribeClient Interface : AccessSecurityKeyService Method
The endpoint descriptor of the OPC UA server containing the PubSub Security Key Service (SKS) model.
Gives access to PubSub security key service (SKS) provided by the specified OPC UA server.
Syntax
'Declaration
 
<NotNullAttribute()>
Function AccessSecurityKeyService( _
   ByVal endpointDescriptor As Object _
) As _UAPubSubSecurityKeyService
'Usage
 
Dim instance As _EasyUAPublishSubscribeClient
Dim endpointDescriptor As Object
Dim value As _UAPubSubSecurityKeyService
 
value = instance.AccessSecurityKeyService(endpointDescriptor)
[NotNull()]
_UAPubSubSecurityKeyService AccessSecurityKeyService( 
   object endpointDescriptor
)
[NotNull()]
_UAPubSubSecurityKeyService^ AccessSecurityKeyService( 
   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