Exemplo n.º 1
0
        public static bool GetIsAttributeWritable(ImaqdxSessionHandle session, string name)
        {
            Debug.Assert(session != null, "The session parameter cannot be null.");
            Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle.");
            Debug.Assert(name != null, "The name parameter cannot be null.");

            uint writable;
            int  status = NiImaqdxDll.IMAQdxIsAttributeWritable(session, name, out writable);

            ExceptionBuilder.CheckErrorAndThrow(status);
            return(Convert.ToBoolean(writable));
        }