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

AF SDK Reference

PIServer.GetCsvColumns Method (Type, Boolean)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.GetCsvColumns Method (Type, Boolean)
Retrieve a collection containing the required and optional CSV columns for the specified object type and its children. The supported objects include PI Points, PI DigitalStateSets, PI Identities, or PI IdentityMappings.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFCsvColumns GetCsvColumns(
	Type objType,
	bool useLegacyColumns
)
Public Function GetCsvColumns ( 
	objType As Type,
	useLegacyColumns As Boolean
) As AFCsvColumns

Dim instance As PIServer
Dim objType As Type
Dim useLegacyColumns As Boolean
Dim returnValue As AFCsvColumns

returnValue = instance.GetCsvColumns(objType, 
	useLegacyColumns)
public:
AFCsvColumns^ GetCsvColumns(
	Type^ objType, 
	bool useLegacyColumns
)
member GetCsvColumns : 
        objType : Type * 
        useLegacyColumns : bool -> AFCsvColumns 

Parameters

objType
Type: SystemType
The type of AF object whose columns are to be retrieved and returned.
useLegacyColumns
Type: SystemBoolean
Boolean indicating if legacy required columns should be returned. Those columns were used by a previous bulk configuration utility for PI Tags (PI-SMT add-in).

Return Value

Type: AFCsvColumns
A collection of all available CSV columns for the specified object type.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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