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



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAPropertyDescriptor Class : PropertyId Property
The Property ID of the OPC property.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property PropertyId As DAPropertyId
'Usage
 
Dim instance As DAPropertyDescriptor
Dim value As DAPropertyId
 
instance.PropertyId = value
 
value = instance.PropertyId
[DataMember()]
public DAPropertyId PropertyId {get; set;}
[DataMember()]
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 DAPropertyId from System.Int64 or 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 DAPropertyIds enumeration in place of 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 DAPropertyIds enumeration value. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DAPropertyId.DAPropertyId Constructor(Int64) or DAPropertyId.DAPropertyId Constructor(DAPropertyIds) constructor, or the DAPropertyId.ToInt64 or DAPropertyId.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