public OpcGroup GetPublicGroup(string p_GroupName) { if (m_IfServer == null) { Marshal.ThrowExceptionForHR(HResults.E_ABORT); } OpcGroup l_Grp = new OpcGroup(ref m_IfServer, true, p_GroupName, false, 1000); l_Grp.InternalAdd(null, null, 0); return(l_Grp); }
public OpcGroup AddGroup(string groupName, bool setActive, int requestedUpdateRate, int[] biasTime, float[] percentDeadband, int localeId) { if (m_IfServer == null) { Marshal.ThrowExceptionForHR(HResults.E_ABORT); } var group = new OpcGroup(ref m_IfServer, false, groupName, setActive, requestedUpdateRate); group.InternalAdd(biasTime, percentDeadband, localeId); return(group); }