private void TestEnum() { int hr; IEnumComponents pEnum; hr = m_comps.EnumComponents(out pEnum); DsError.ThrowExceptionForHR(hr); Debug.Assert(pEnum != null, "EnumComponents"); }
private void Config() { int hr; object o; IComponents comps = (IComponents) new Components(); IComponent icomp = (IComponent) new Component(); for (int x = 0; x < 7; x++) { hr = comps.Add(icomp, out o); DsError.ThrowExceptionForHR(hr); } hr = comps.EnumComponents(out m_pEnum); DsError.ThrowExceptionForHR(hr); }