ICommandParameterExtensions Class#
Inheritance Hierarchy#
System.Object
Basler.Pylon.ICommandParameterExtensions
Syntax#
C#
VB
The ICommandParameterExtensions type exposes the following members.
Methods#
Name | Description | |
---|---|---|
TryExecute | 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#
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.