示例#1
0
        private void TestPreferredComponentTypes()
        {
            int             hr = 0;
            IComponentTypes compTypes;

            hr = tuner.get_PreferredComponentTypes(out compTypes);
            DsError.ThrowExceptionForHR(hr);

            hr = tuner.put_PreferredComponentTypes(compTypes);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(hr == 0, "ITuner.get_PreferredComponentTypes / put_PreferredComponentTypes");

            Marshal.ReleaseComObject(compTypes);
        }