AFAttributeTemplate.FindAttributeTemplate Method (AFElementTemplate, Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFAttributeTemplate object with the specified unique identifier.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFAttributeTemplate FindAttributeTemplate( AFElementTemplate template, Guid id )
Public Shared Function FindAttributeTemplate ( template As AFElementTemplate, id As Guid ) As AFAttributeTemplate Dim template As AFElementTemplate Dim id As Guid Dim returnValue As AFAttributeTemplate returnValue = AFAttributeTemplate.FindAttributeTemplate(template, id)
public: static AFAttributeTemplate^ FindAttributeTemplate( AFElementTemplate^ template, Guid id )
static member FindAttributeTemplate : template : AFElementTemplate * id : Guid -> AFAttributeTemplate
Parameters
- template
- Type: OSIsoft.AF.AssetAFElementTemplate
The AFElementTemplate to search for the AFAttributeTemplate identified by the specified id parameter. - id
- Type: SystemGuid
The unique identifier of the AFAttributeTemplate to search for in the specified template.
Return Value
Type: AFAttributeTemplateReturns the AFAttributeTemplate identified by the id in the specified template.
Remarks
The AFAttributeTemplate of the specified template is returned.