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

AF SDK Reference

AFCsvColumns Class

  • Last UpdatedNov 18, 2025
  • 6 minute read
AFCsvColumns Class
A collection of AFCsvColumn objects.

Inheritance Hierarchy

SystemObject
  System.Collections.ObjectModelCollectionAFCsvColumn
    OSIsoft.AFAFCsvColumns

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

Syntax

public sealed class AFCsvColumns : Collection<AFCsvColumn>
Public NotInheritable Class AFCsvColumns
	Inherits Collection(Of AFCsvColumn)

Dim instance As AFCsvColumns
public ref class AFCsvColumns sealed : public Collection<AFCsvColumn^>
[<SealedAttribute>]
type AFCsvColumns =  
    class
        inherit Collection<AFCsvColumn>
    end

The AFCsvColumns type exposes the following members.

Constructors

  NameDescription
Public method
AFCsvColumns
Initializes a new instance of the AFCsvColumns class

Properties

  NameDescription
Public property
Count
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public property
ExtraTypes
This read-only property returns a list of object types that do not have their own separate columns, but rather share columns with other types in the collection.
Public property
Headers
This read-only property returns a list of string headers for each of the AFCsvColumn objects in the collection.
Public property
ItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionAFCsvColumn.)
Public property
ItemString
Returns the specified object from the collection by name.
Public property
Types
This read-only property returns a list of object types represented by the AFCsvColumn objects in the collection.

Methods

  NameDescription
Public method
Add
Adds an object to the end of the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
AddRange
Add all entries of an existing AFCsvColumn list to the collection.
Public method
Clear
Removes all elements from the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
Contains(String)
This method determines whether the collection contains a specific item referenced by name.
Public method
Contains(T)
Determines whether an element is in the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
CopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionAFCsvColumn.)
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
FindCsvColumnsByIdentity
Find the AFCsvColumn objects in the collection with the specified AFIdentity.
Public method
FindCsvColumnsByType
Find the AFCsvColumn objects in the collection with the specified object type.
Public method
GetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetRequiredCsvColumns
Retrieve the AFCsvColumn objects from the collection that are required.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
Insert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionAFCsvColumn.)
Public method
Remove(String)
The Remove method removes the item from the collection by name.
Public method
Remove(T)
Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
RemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionAFCsvColumn.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Remarks

This collection can be used as a user-created list of AFCsvColumn objects. It is also returned from the PISystem.GetCsvColumns Overload methods as the list of required and optional columns available for CSV import/export of a given AF object type.

A list of AF object types represented by the entries in the collection can be retrieved via the Types property and a list of column headings represented by the entries in the collection can be retrieved via the Headers property. These can be used as parameters to the PISystem.ExportCsv Overload methods.

Version Information

AFSDK


See Also

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