IUAVariable.SetDynamicLinkToAlias(aliasName, attributeId, mode)

Set a dynamic link from a variable to a specific OPC UA attribute of an alias node, specifying the dynamic link mode.
void SetDynamicLinkToAlias(string aliasName, AttributeId attributeId, DynamicLinkMode mode = DynamicLinkMode.Read);

Arguments

aliasName
(string)
The
BrowseName
of the Alias.
attributeId
The OPC UA attribute to link to. Use
AttributeId
enumeration.
mode
(DynamicLinkMode)
An optional argument that specifies the dynamic link mode.
The following dynamic link modes are available:
DynamicLinkMode.Read
(default)
Read (from source node to parent).
DynamicLinkMode.Write
Write (from parent to source).
DynamicLinkMode.ReadWrite
Read and write (bidirectional).
ResourceURI
A C# object that contains the path indicated in the argument.

Example

Link a variable to a specific OPC UA attribute of an alias node:
[ExportMethod] public void CreateDynamicLinkToAliasAttribute() { // Get the Text variable of a Label var myVariable = Owner.GetVariable("Label1/Text"); // Link to the BrowseName attribute of {MotorAlias} itself myVariable.SetDynamicLinkToAlias("MotorAlias", AttributeId.BrowseName, DynamicLinkMode.Read); }
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal