WMEncProfile2.LoadFromMemory
![]() |
The LoadFromMemory method loads a profile from an XML string, which contains the profile data.
Syntax
void WMEncProfile2.LoadFromMemory(
string bstrData
);
Parameters
bstrData
[in] String containing the data.
Return Values
This method does not return a value.
Remarks
For an example of the XML format required for the strData string, run the example code for the SaveToMemory method.
Example Code
using WMEncoderLib;
try
{
// Create a WMEncProfile2 object.
WMEncProfile2 Pro;
Pro = new WMEncProfile2();
// Load the profile from a string sProString.
Pro.LoadFromMemory(sProString);
}
catch (Exception e)
{
// TODO: Handle exceptions.
}
Requirements
Reference: Windows Media Encoder
Namespace: WMEncoderLib
Assembly: Interop.WMEncoderLib.dll
Library: WMEncoderLib.dll
See Also
.gif)