Exemplo n.º 1
0
        public static string GetAttributeDisplayName(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.");

            string displayName;
            int    status = NiImaqdxDll.IMAQdxGetAttributeDisplayNameCW(session, name, out displayName);

            ExceptionBuilder.CheckErrorAndThrow(status);
            return(displayName == null ? string.Empty : displayName);
        }