Skip to content

InterfaceFinder Class#

The interface finder can be used to query information about interfaces in the system.

Inheritance Hierarchy#

System.Object
  Basler.Pylon.InterfaceFinder

Syntax#

C#

public static class InterfaceFinder

VB

Public NotInheritable Class InterfaceFinder

Methods#

NameDescription
Public methodStatic memberEnumerate() Retrieves information about interfaces in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.
Public methodStatic memberEnumerate(String) Retrieves information about interfaces of a specific type in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.
 

InterfaceFinder.Enumerate Method#

Retrieves information about interfaces in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.

Syntax#

C#

public static List<IInterfaceInfo> Enumerate()

VB

Public Shared Function Enumerate As List(Of IInterfaceInfo)

Return Value#

Type: List(IInterfaceInfo)
Returns a list of IInterfaceInfo objects, one for each interface found. The list is ordered by device type and interface ID. Device type order: USB, GigE, Camera Link, IEEE 1394, other device types ordered by using the < operator, Camera Emulation

Remarks#

The function queries for interfaces in the system and returns a list of IInterfaceInfo objects describing the interfaces. The returned information can be used to create a specific Interface object.

Thread Safety: This method is thread-safe.

Error Safety: Can throw exceptions.

InterfaceFinder.Enumerate Method (String)#

Retrieves information about interfaces of a specific type in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.

Syntax#

C#

public static List<IInterfaceInfo> Enumerate(
    string deviceType
)

VB

Public Shared Function Enumerate ( 
    deviceType As String
) As List(Of IInterfaceInfo)

Parameters#

 

deviceType
Type: System.String
The name of the device type to enumerate interfaces. The static class DeviceType can be used to get a list of valid device class names.

Return Value#

Type: List(IInterfaceInfo)
Returns a list of IInterfaceInfo objects, one per interface found. The list is ordered by interface ID.

Remarks#

The function queries for interfaces of a specific device class in the system and returns a list of IInterfaceInfo objects describing the interfaces. The returned information can be used to create a specific Interface object. The static class DeviceType can be used to get a list of valid device type names.

Thread Safety: This method is thread-safe.

Error Safety: Can throw exceptions.

InterfaceFinder.Enumerate Method#

Overload List#

NameDescription
Public methodStatic memberEnumerate() Retrieves information about interfaces in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.
Public methodStatic memberEnumerate(String) Retrieves information about interfaces of a specific type in the system. An interface may represent a frame grabber board, a network card, etc. Currently, this method is used mainly for the pylon GenTL Consumer transport layer, which is used for CoaXPress, for example. All other pylon transport layers return one default interface. The default interface does not provide any parameters and therefore returns an empty parameter collection.