Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFCsvColumn Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCsvColumn Constructor
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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in