private void TestAdd() { int hr; object o; IComponentType icomp = (IComponentType) new ComponentType(); hr = m_compTypes.Add(icomp, out o); DsError.ThrowExceptionForHR(hr); }
private void Config() { int hr; object o; IComponentTypes compTypes = (IComponentTypes) new ComponentTypes(); IComponentType icomp = (IComponentType) new ComponentType(); for (int x = 0; x < 7; x++) { hr = compTypes.Add(icomp, out o); DsError.ThrowExceptionForHR(hr); } hr = compTypes.EnumComponentTypes(out m_pEnum); DsError.ThrowExceptionForHR(hr); }