I have a question concerning the query of the AccessLevel of a node. While dealing with a VariableNode I can query it's access level using the AccessLevel-property. Anyway I want to ask a node whether it is writable, e.g. whether some flag "writable" is set. I would have expexted an enum type and querying it with the Enum.HasFlags(AccessLevels.CurrentWrite) function, but all I find is a dumb byte. That's probably nailed down by the OPC UA spec. I wonder whether there's some convenient method for me to ask a node whether it's writable or not. Otherwise my code looks like the following mess:
Thanks for the quick reply. I therefore assume that a node which is marked as HistoryWrite isn't meant to be writable for the current value on the fly? That's odd, but perhaps desired behavior. I'm ok with that.
I have a feature request though: Could you please skip the annoying byte definition of the access level in some upcoming version and exchange this with an enum type marked with the flags attribute? Like this it's quite easy to ask the type with the HasFlags method thus avoiding error prone bitwise comparison.