Skip to content

ICommandParameterExtensions Class#

Extension class for the command parameter interface.

Inheritance Hierarchy#

System.Object
  Basler.Pylon.ICommandParameterExtensions

Syntax#

C#

public static class ICommandParameterExtensions

VB

<ExtensionAttribute>
Public NotInheritable Class ICommandParameterExtensions

The ICommandParameterExtensions type exposes the following members.

Methods#

 NameDescription
Public methodStatic memberTryExecute Executes the command and returns immediately if the parameter is writable.
 

ICommandParameterExtensions.TryExecute Method#

Executes the command and returns immediately if the parameter is writable.

Syntax#

C#

public static bool TryExecute(
    this ICommandParameter parameter
)

VB

<ExtensionAttribute>
Public Shared Function TryExecute ( 
    parameter As ICommandParameter
) As Boolean

Parameters#
parameter
Type: Basler.Pylon.ICommandParameter
The interface of the parameter.
Return Value#

Type: Boolean
Returns false if the parameter is not writable.

Usage Note#

In Visual Basic and C#, you can call this method as an instance method on any object of type ICommandParameter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks#

Thread Safety: This method is synchronized with the source of the parameter collection, if any.

Error Safety: Can throw exceptions if accessing the camera failed.