OPC Studio User's Guide and Reference
KeyLifetime Property (SecurityGroupElement)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.KeyManagement.Configuration Namespace > SecurityGroupElement Class : KeyLifetime Property
The lifetime of a key in milliseconds.
Syntax
'Declaration
 
<UnitAttribute("ms")>
<ValueLimitsAttribute(0, 1.79769313486232E+308)>
Public Property KeyLifetime As Double
'Usage
 
Dim instance As SecurityGroupElement
Dim value As Double
 
instance.KeyLifetime = value
 
value = instance.KeyLifetime
[Unit("ms")]
[ValueLimits(0, 1.79769313486232E+308)]
public double KeyLifetime {get; set;}
[Unit("ms")]
[ValueLimits(0, 1.79769313486232E+308)]
public:
property double KeyLifetime {
   double get();
   void set (    double value);
}

Property Value

Unit of measurement is ms.

The default value of this property is 0.

Exceptions
ExceptionDescription

The value of an argument is outside the allowable range of values as defined by the invoked method.

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.

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