Share via


IWMEncProfileCollection.Refresh

Windows Media Encoder SDK banner art

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

Syntax

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

' Create a WMEncoder object.
  Dim Encoder As WMEncoder
  Set Encoder = New WMEncoder

' Retrieve an IWMEncProfileCollection object.
  Dim ProColl As IWMEncProfileCollection
  Set ProColl = Encoder.ProfileCollection

' Change the custom profile directory for the current encoding session.
  ProColl.ProfileDirectory = "C:\MyProfiles"
  ProColl.Refresh

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also