IWMEncSourceGroup2.DeviceControlCollection
The DeviceControlCollection property retrieves the device control collection for the source group.
Syntax
IWMEncDeviceControlCollection = IWMEncSourceGroup2.DeviceControlCollection;
Parameters
This property takes no parameters.
Property Value
An IWMEncDeviceControlCollection object.
Remarks
This property is read-only.
Example Code
using WMEncoderLib;
try
{
// Create a WMEncoder object.
WMEncoder Encoder;
Encoder = new WMEncoder();
// Create an IWMEncSourceGroupCollection object.
IWMEncSourceGroupCollection SrcGrpColl;
SrcGrpColl = Encoder.SourceGroupCollection;
// Create an IWMEncSourceGroup object.
IWMEncSourceGroup2 SrcGrp;
SrcGrp = (IWMEncSourceGroup2)SrcGrpColl.Add("SG_1");
// Retrieve the device control collection from the source group.
IWMEncDeviceControlCollection DCColl;
DCColl = SrcGrp.DeviceControlCollection;
}
catch (Exception e)
{
// TODO: Handle exceptions.
}
Requirements
Reference: Windows Media Encoder
Namespace: WMEncoderLib
Assembly: Interop.WMEncoderLib.dll
Library: WMEncoderLib.dll
See Also