OPC Studio User's Guide and Reference
AccessRights Property (DAItemPropertyRecord)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Extensions Namespace > DAItemPropertyRecord Class : AccessRights Property
Gets or sets Item Access Rights.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Property AccessRights As DAAccessRight
'Usage
 
Dim instance As DAItemPropertyRecord
Dim value As DAAccessRight
 
instance.AccessRights = value
 
value = instance.AccessRights
[NotNull()]
public DAAccessRight AccessRights {get; set;}
[NotNull()]
public:
property DAAccessRight^ AccessRights {
   DAAccessRight^ get();
   void set (    DAAccessRight^ 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.DAAccessRight from System.Int64 or OpcLabs.EasyOpc.DataAccess.DAAccessRights, 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 access rights), or an element of the OpcLabs.EasyOpc.DataAccess.DAAccessRights enumeration (or a combination of OpcLabs.EasyOpc.DataAccess.DAAccessRights flags) in place of OpcLabs.EasyOpc.DataAccess.DAAccessRight value when setting this property, and the corresponding access rights 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 access rights), or in place a OpcLabs.EasyOpc.DataAccess.DAAccessRights enumeration value. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DAAccessRight Constructor(Int64) or DAAccessRight Constructor(DAAccessRights) constructor, or the ToInt64 or ToDAAccessRights 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