WMEncProfile2.LoadFromFile
![]() |
The LoadFromFile method loads a profile from a saved file.
Syntax
void WMEncProfile2.LoadFromFile(
string bstrFileName
);
Parameters
bstrFileName
[in] String containing the file name.
Return Values
This method does not return a value.
Remarks
Profile files have a .prx extension.
Example Code
using WMEncoderLib;
try
{
// Create a WMEncProfile2 object.
WMEncProfile2 Pro;
Pro = new WMEncProfile2();
// Load a custom profile. REPLACE THE FILE NAME.
Pro.LoadFromFile("C:\\Profiles\\CustomProfile.prx");
}
catch (Exception e)
{
// TODO: Handle exceptions.
}
Requirements
Reference: Windows Media Encoder
Namespace: WMEncoderLib
Assembly: Interop.WMEncoderLib.dll
Library: WMEncoderLib.dll
See Also
.gif)