Skip to content

ParameterValueChangedEventArgs Class#

Event arguments used when a parameter value change event is raised from interface class IParameter.

Inheritance Hierarchy#

System.Object
  System.EventArgs
    Basler.Pylon.ParameterValueChangedEventArgs

Syntax#

C#

public class ParameterValueChangedEventArgs : EventArgs

VB

Public Class ParameterValueChangedEventArgs
    Inherits EventArgs

The ParameterValueChangedEventArgs type exposes the following members.

Constructors#

NameDescription
Public methodParameterValueChangedEventArgs Creates the object.
 

Properties#

NameDescription
Public propertyCurrentValue The current value of the parameter.
Public propertyParameter The parameter instance.
Public propertyPreviousValue The previous value of the parameter.
 

Remarks#

To avoid additional read operations you should use the properties passed in this class.

ParameterValueChangedEventArgs Constructor#

Creates the object.

Syntax#

C#

public ParameterValueChangedEventArgs(
    IParameter parameter,
    Object oldValue,
    Object newValue
)

VB

Public Sub New ( 
    parameter As IParameter,
    oldValue As Object,
    newValue As Object
)

Parameters#

 

parameter
Type: Basler.Pylon.IParameter
The sender of the event.
oldValue
Type: System.Object
The value before value change.
newValue
Type: System.Object
The value after value change.

ParameterValueChangedEventArgs.CurrentValue Property#

The current value of the parameter.

Syntax#

C#

public Object CurrentValue { get; }

VB

Public ReadOnly Property CurrentValue As Object
    Get

Property Value#

Type: Object

ParameterValueChangedEventArgs.Parameter Property#

The parameter instance.

Syntax#

C#

public IParameter Parameter { get; }

VB

Public ReadOnly Property Parameter As IParameter
    Get

Property Value#

Type: IParameter

ParameterValueChangedEventArgs.PreviousValue Property#

The previous value of the parameter.

Syntax#

C#

public Object PreviousValue { get; }

VB

Public ReadOnly Property PreviousValue As Object
    Get

Property Value#

Type: Object