AFCsvColumn Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of a CSV column object while specifying whether it is required, the optional name prefix, the name,
the description, the parent object type using the column, and the type of the data that will be exported or imported for the
column.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCsvColumn( bool requiredCol, string optionalPrefix, string name, string description, Type parentType, Type colDataType )
Public Sub New ( requiredCol As Boolean, optionalPrefix As String, name As String, description As String, parentType As Type, colDataType As Type ) Dim requiredCol As Boolean Dim optionalPrefix As String Dim name As String Dim description As String Dim parentType As Type Dim colDataType As Type Dim instance As New AFCsvColumn(requiredCol, optionalPrefix, name, description, parentType, colDataType)
public: AFCsvColumn( bool requiredCol, String^ optionalPrefix, String^ name, String^ description, Type^ parentType, Type^ colDataType )
new : requiredCol : bool * optionalPrefix : string * name : string * description : string * parentType : Type * colDataType : Type -> AFCsvColumn
Parameters
- requiredCol
- Type: SystemBoolean
Indicates if the column is required for export or import. - optionalPrefix
- Type: SystemString
The optional name prefix for the column. For example, for an attribute value, optionalPrefix will have a value of "Attribute" - name
- Type: SystemString
The name of the column. For example, for an attribute value, name will have a value of "Value". - description
- Type: SystemString
Optional description of the column. - parentType
- Type: SystemType
Type of the AF object using the column. For example if a column is being used by AFAttribute, parentType will have a value of typeof(AFAttribute). - colDataType
- Type: SystemType
Type of the data imported an exported in the column.