FilterGraphTools.FindFilterByClsid Method

DirectShowLib.Utils

A Managed DirectShow Toolkit

FilterGraphTools.FindFilterByClsid Method 

Find a filter in a DirectShow Graph using its CLSID

public static IBaseFilter FindFilterByClsid(
   IGraphBuilder graphBuilder,
   Guid filterClsid
);

Parameters

graphBuilder
the IGraphBuilder interface of the graph
filterClsid
the CLSID to find

Return Value

an instance of the filter if found, null if not

Exceptions

Exception Type Condition
ArgumentNullException Thrown if graphBuilder is null

See Also

FilterGraphTools Class | DirectShowLib.Utils Namespace | FindFilterByName