private void TestEnum() { int hr; IEnumComponentTypes pEnum; hr = m_compTypes.EnumComponentTypes(out pEnum); DsError.ThrowExceptionForHR(hr); Debug.Assert(pEnum != null, "EnumComponentTypes"); }
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); }