Skip to content

DataContainerFactory Class#

Provides a factory for data container.

Inheritance Hierarchy#

System.Object
  Basler.Pylon.DataContainerFactory

Syntax#

C#

public class DataContainerFactory

VB

Public Class DataContainerFactory

The DataContainerFactory type exposes the following members.

Constructors#

NameDescription
Public methodDataContainerFactory Initializes a new instance of the DataContainerFactory class
 

Methods#

NameDescription
Public methodStatic memberCreateFromFile Create a data container from a file.
 

DataContainerFactory.CreateFromFile Method#

Create a data container from a file.

Syntax#

C#

public static IDataContainer CreateFromFile(
    string filename
)

VB

Public Shared Function CreateFromFile ( 
    filename As String
) As IDataContainer

Parameters#

 

filename
Type: System.String
Path to an existing file.

Return Value#

Type: IDataContainer
Returns a data container.

Remarks#

Thread Safety:This method is thread-safe.

Error Safety:This method throws

FileLoadException if the file cannot be loaded.

FileNotFoundException if the file was not found.

DataContainerFactory Constructor#

Initializes a new instance of the DataContainerFactory class

Syntax#

C#

public DataContainerFactory()

VB

Public Sub New