QuickOPC User's Guide and Reference
GetProperty Method



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.Extensions Namespace > DAItemPropertyRecord Class : GetProperty Method
The Id of OPC property to be retrieved.
Obtains a property value from this structure for an OPC property specified by its Id.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Function GetProperty( _
   ByVal propertyId As DAPropertyId _
) As Object
'Usage
 
Dim instance As DAItemPropertyRecord
Dim propertyId As DAPropertyId
Dim value As Object
 
value = instance.GetProperty(propertyId)
[CanBeNull()]
public object GetProperty( 
   DAPropertyId propertyId
)
[CanBeNull()]
public:
Object^ GetProperty( 
   DAPropertyId^ propertyId
) 

Parameters

propertyId
The Id of OPC property to be retrieved.

Return Value

The value of OPC property.
Remarks
Throws an exception if the structure does not contain a value for a specified OPC property.
Requirements

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

See Also

Reference

DAItemPropertyRecord Class
DAItemPropertyRecord Members