Probably the question very easy.
I'm writing an application using VB.NET and I need to know if the Read Only box in PI Point Data Reference is checked.
AFAttribute.ConfigString property returns the current configuration of the attribute's data reference as a string.
If you uncheck ReadOnly for the PI Point attribute, then your string will contain ReadOnly=False
You can also check the attribute's SupportedMethods property and see if the AFDataReferenceMethod.SetValue is set. This enumeration has the FlagsAttribute so multiple values may be set on this property. If 'SetValue' is not set, then it is a read-only attribute.
That particular checkbox applies to PI points using the AFAttribute.SetValue method. That checkbox is ignored for PI points using the AFAttribute.Data.UpdateValue or AFAttribute.Data.UpdateValues methods. That means you could have ReadOnly checked as True, and code could still write to the tag using UpdateValue or UpdateValues.
Retrieving data ...