Skip to content

GrabStopEventArgs Class#

Provides data for the GrabStopping & GrabStopped events.

Inheritance Hierarchy#

System.Object
  System.EventArgs
    Basler.Pylon.GrabStopEventArgs

Syntax#

C#

public class GrabStopEventArgs : EventArgs

VB

Public Class GrabStopEventArgs
    Inherits EventArgs

The GrabStopEventArgs type exposes the following members.

Constructors#

NameDescription
Public methodGrabStopEventArgs() Creates an instance with the grab stop reason set to UserRequest and no error message.
Public methodGrabStopEventArgs(GrabStopReason, String) Creates an instance with a specified grab stop reason and an error message.
 

Properties#

NameDescription
Public propertyErrorMessage The message that is displayed if the grab stopped because of an error.
Public propertyReason The reason why the GrabStopping or GrabStopped event occurred.
 

GrabStopEventArgs Constructor#

Creates an instance with the grab stop reason set to UserRequest and no error message.

Syntax#

C#

public GrabStopEventArgs()

VB

Public Sub New

GrabStopEventArgs Constructor (GrabStopReason, String)#

Creates an instance with a specified grab stop reason and an error message.

Syntax#

C#

public GrabStopEventArgs(
    GrabStopReason reason,
    string errorMessage
)

VB

Public Sub New ( 
    reason As GrabStopReason,
    errorMessage As String
)

Parameters#

 

reason
Type: Basler.Pylon.GrabStopReason
The reason why the grab stop event occurred.
errorMessage
Type: System.String
The message that is displayed if the grab stopped because of an error.

GrabStopEventArgs Constructor#

Overload List#

NameDescription
Public methodGrabStopEventArgs() Creates an instance with the grab stop reason set to UserRequest and no error message.
Public methodGrabStopEventArgs(GrabStopReason, String) Creates an instance with a specified grab stop reason and an error message.
 

GrabStopEventArgs.ErrorMessage Property#

The message that is displayed if the grab stopped because of an error.

Syntax#

C#

public string ErrorMessage { get; }

VB

Public ReadOnly Property ErrorMessage As String
    Get

Property Value#

Type: String

GrabStopEventArgs.Reason Property#

The reason why the GrabStopping or GrabStopped event occurred.

Syntax#

C#

public GrabStopReason Reason { get; }

VB

Public ReadOnly Property Reason As GrabStopReason
    Get

Property Value#

Type: GrabStopReason