FilterGraphTools.FindFilterByName Method

DirectShowLib.Utils

A Managed DirectShow Toolkit

FilterGraphTools.FindFilterByName Method 

Find a filter in a DirectShow Graph using its name

public static IBaseFilter FindFilterByName(
   IGraphBuilder graphBuilder,
   string filterName
);

Parameters

graphBuilder
the IGraphBuilder interface of the graph
filterName
the filter name to find (case-sensitive)

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 | FindFilterByClsid