IWMEncProfileCollection.Refresh

Windows Media Encoder SDK banner art

The Refresh method deletes the old profile collection and populates a new collection.

Syntax

void IWMEncProfileCollection.Refresh();

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

Use the Refresh method to update all of the available profiles after you have modified the collection, for example by changing the custom profile directory.

Example Code

using WMEncoderLib;

try
{
// Create a WMEncoder object.
  WMEncoder Encoder;
  Encoder = new WMEncoder();

// Retrieve an IWMEncProfileCollection object.
  IWMEncProfileCollection ProColl;
  ProColl = Encoder.ProfileCollection;

// Change the custom profile directory for the current encoding session.
  ProColl.ProfileDirectory = "C:\\MyProfiles";
  ProColl.Refresh();
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also