OPC Studio User's Guide and Reference
AddSecurityGroup Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.SecurityKeyService Namespace > IUAPubSubSecurityKeyService Interface : AddSecurityGroup Method
Name of the security group to add.
The lifetime of a key (in milliseconds).
The URI string of the security policy used for the security group.
The maximum number of future keys returned.
The maximum number of historical keys stored by the security key service.
Adds a security group to the security group folder.
Syntax
'Declaration
 
<NotNullAttribute()>
Function AddSecurityGroup( _
   ByVal securityGroupName As String, _
   ByVal keyLifetime As Double, _
   ByVal securityPolicyUriString As String, _
   ByVal maximumFutureKeyCount As Long, _
   ByVal maximumPastKeyCount As Long _
) As String
'Usage
 
Dim instance As IUAPubSubSecurityKeyService
Dim securityGroupName As String
Dim keyLifetime As Double
Dim securityPolicyUriString As String
Dim maximumFutureKeyCount As Long
Dim maximumPastKeyCount As Long
Dim value As String
 
value = instance.AddSecurityGroup(securityGroupName, keyLifetime, securityPolicyUriString, maximumFutureKeyCount, maximumPastKeyCount)

Parameters

securityGroupName
Name of the security group to add.
keyLifetime
The lifetime of a key (in milliseconds).
securityPolicyUriString
The URI string of the security policy used for the security group.
maximumFutureKeyCount
The maximum number of future keys returned.
maximumPastKeyCount
The maximum number of historical keys stored by the security key service.

Return Value

Returns the identifier for the security group (security group Id).
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