OPC Studio User's Guide and Reference
GetKeyForItem Method (AEAttributeElementCollection)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace Namespace > AEAttributeElementCollection Class : GetKeyForItem Method
The element from which to extract the key.
When implemented in a derived class, extracts the key from the specified element.
Syntax
'Declaration
 
Protected Overrides NotOverridable Function GetKeyForItem( _
   ByVal item As AEAttributeElement _
) As Long
'Usage
 
Dim instance As AEAttributeElementCollection
Dim item As AEAttributeElement
Dim value As Long
 
value = instance.GetKeyForItem(item)
protected override long GetKeyForItem( 
   AEAttributeElement item
)
protected:
int64 GetKeyForItem( 
   AEAttributeElement^ item
) override 

Parameters

item
The element from which to extract the key.

Return Value

The key for the specified element.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also

Reference

AEAttributeElementCollection Class
AEAttributeElementCollection Members
Base Implementation in GetKeyForItem