IMediaObjectImpl.ParamDefine Method

IMediaObjectImpl

An NDoc Documented Class Library

IMediaObjectImpl.ParamDefine Method 

Create a definition for a parameter that is accessible thru IMediaParamInfo and IMediaParams.

protected void ParamDefine(
   int iParamNum,
   ParamInfo p,
   string sText
);

Parameters

iParamNum
Zero based parameter number to set the definition for
p
Populated ParamInfo struct
sText
Format string (described in MSDN under IMediaParamInfo::GetParamText)

Remarks

This method should be called from the constructor of the class that implements IMediaObjectImpl. It defines a single parameter that can be set on the DMO. You must call it once for each of the parameters defined in the call to the IMediaObjectImpl constructor. This allows for automatic support of the IMediaParamInfo and IMediaParams methods. See the ParamCalcValueForTime for additional details.

See Also

IMediaObjectImpl Class | MediaObjectTemplate Namespace