smartinspectpython.sisessiondefaults

@export
class SISessionDefaults:

Specifies the default property values for newly created sessions.

This class is used by the SmartInspect class to customize the default property values for newly created sessions. Sessions that will be created by or passed to the AddSession method of the SmartInspect class will be automatically configured with the values of the SmartInspect.SessionDefaults property.

Threadsafety:

This class is fully thread-safe.

SISessionDefaults()

Initializes a new instance of the class.

Active: bool

Gets the Active property value.

Represents the default Active property for newly created sessions.

Please see SISession.Active for general information about the active status of sessions.

Gets the ColorBG property value.

Represents the default background color property for newly created sessions.

Please see SISession.ColorBG for general information about the background color of sessions.

Gets the Level property value.

Represents the default Level property for newly created sessions.

Please see SISession.Level for general information about the log level of sessions.

def Assign(self, session: smartinspectpython.sisession.SISession) -> None:

Sets various properties of the specified session with like-named properties of the session defaults.

Arguments:
  • session (SISession): Session whose properties will be set from session defaults.