OPC Studio User's Guide and Reference
PropertyId Property (DAPropertyElement)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.AddressSpace Namespace > DAPropertyElement Class : PropertyId Property
The Property ID for this property.
Syntax
'Declaration
 
Public Property PropertyId As DAPropertyId
'Usage
 
Dim instance As DAPropertyElement
Dim value As DAPropertyId
 
instance.PropertyId = value
 
value = instance.PropertyId
public DAPropertyId PropertyId {get; set;}
public:
property DAPropertyId^ PropertyId {
   DAPropertyId^ get();
   void set (    DAPropertyId^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

Remarks

Because there are implicit conversions to OpcLabs.EasyOpc.DataAccess.DAPropertyId from System.Int64 or OpcLabs.EasyOpc.DataAccess.DAPropertyIds, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a long integer (representing the numerical value of the property Id), or an element of the OpcLabs.EasyOpc.DataAccess.DAPropertyIds enumeration in place of OpcLabs.EasyOpc.DataAccess.DAPropertyId value when setting this property, and the corresponding property Id specification will be constructed automatically. Conversely, you can simply use the return value in place of a System.Int64 (representing the numerical value of the property Id), or in place a OpcLabs.EasyOpc.DataAccess.DAPropertyIds enumeration value. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DAPropertyId Constructor(Int64) or DAPropertyId Constructor(DAPropertyIds) constructor, or the ToInt64 or ToDAPropertyIds static method instead.

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