PIServer.GetCsvColumns Method (Type, IList(Object), Boolean)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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, IList<Object> objContexts, bool useLegacyColumns )
Public Function GetCsvColumns ( objType As Type, objContexts As IList(Of Object), useLegacyColumns As Boolean ) As AFCsvColumns Dim instance As PIServer Dim objType As Type Dim objContexts As IList(Of Object) Dim useLegacyColumns As Boolean Dim returnValue As AFCsvColumns returnValue = instance.GetCsvColumns(objType, objContexts, useLegacyColumns)
public: AFCsvColumns^ GetCsvColumns( Type^ objType, IList<Object^>^ objContexts, bool useLegacyColumns )
member GetCsvColumns : objType : Type * objContexts : IList<Object> * useLegacyColumns : bool -> AFCsvColumns
Parameters
- objType
- Type: SystemType
The type of AF object whose columns are to be retrieved and returned. - objContexts
- Type: System.Collections.GenericIListObject
A list of objects that define the context for the request. - 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: AFCsvColumnsA collection of all available CSV columns for the specified object type.