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

AF SDK Reference

AFElementTemplate.FindDerivedTemplates Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.FindDerivedTemplates Method
This method returns the collection of AFElementTemplate objects that have this template as their base template.

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

Syntax

public AFNamedCollectionList<AFElementTemplate> FindDerivedTemplates(
	bool includeIndirect,
	AFSortField sortField,
	AFSortOrder sortOrder,
	int maxCount
)
Public Function FindDerivedTemplates ( 
	includeIndirect As Boolean,
	sortField As AFSortField,
	sortOrder As AFSortOrder,
	maxCount As Integer
) As AFNamedCollectionList(Of AFElementTemplate)

Dim instance As AFElementTemplate
Dim includeIndirect As Boolean
Dim sortField As AFSortField
Dim sortOrder As AFSortOrder
Dim maxCount As Integer
Dim returnValue As AFNamedCollectionList(Of AFElementTemplate)

returnValue = instance.FindDerivedTemplates(includeIndirect, 
	sortField, sortOrder, maxCount)
public:
AFNamedCollectionList<AFElementTemplate^>^ FindDerivedTemplates(
	bool includeIndirect, 
	AFSortField sortField, 
	AFSortOrder sortOrder, 
	int maxCount
)
member FindDerivedTemplates : 
        includeIndirect : bool * 
        sortField : AFSortField * 
        sortOrder : AFSortOrder * 
        maxCount : int -> AFNamedCollectionList<AFElementTemplate> 

Parameters

includeIndirect
Type: SystemBoolean
If , then all element templates derived directly or indirectly from this template will be included in the returned collection. If , then only element templates derived directly from this template will be included.
sortField
Type: OSIsoft.AFAFSortField
The field or property of the object used to sort the returned collection.
sortOrder
Type: OSIsoft.AFAFSortOrder
The order that the returned collection is sorted.
maxCount
Type: SystemInt32
The maximum number of objects to be returned.

Return Value

Type: AFNamedCollectionListAFElementTemplate
Returns the collection of AFElementTemplate objects that have this template as their base template.

Remarks

Use this property to implement inheritance of an element template's AFAttributeTemplate and AFPort objects.

Version Information

AFSDK


See Also

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