LEADTOOLS Multimedia (Leadtools.Multimedia assembly) Send comments on this topic. | Back to Introduction | Help Version 17.0.3.22
GetCodecFormatCount Method
See Also 
Leadtools.Multimedia Namespace > WMProfileManager Class : GetCodecFormatCount Method



Type
Character string that identifies the major media type for which the number of available codecs is being retrieved.
CodecIndex
The index of the codec
Type
Character string that identifies the major media type for which the number of available codecs is being retrieved.
CodecIndex
The index of the codec
Gets the number of formats available for the specified codec and media type.

Syntax

Visual Basic (Declaration) 
Public Function GetCodecFormatCount( _
   ByVal Type As String, _
   ByVal CodecIndex As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As WMProfileManager
Dim Type As String
Dim CodecIndex As Integer
Dim value As Integer
 
value = instance.GetCodecFormatCount(Type, CodecIndex)
C# 
public int GetCodecFormatCount( 
   string Type,
   int CodecIndex
)
C++/CLI 
public:
int GetCodecFormatCount( 
   String^ Type,
   int CodecIndex
) 

Parameters

Type
Character string that identifies the major media type for which the number of available codecs is being retrieved.
CodecIndex
The index of the codec

Return Value

The number of formats

Remarks

Gets the number of formats available for the specified codec and media type. The returned number of formats can be used with WMProfileManager.GetCodecFormat to enumerate the available formats supported by the codec. For more information, refer to the Microsoft documentation for IWMCodecInfo.GetCodecFormatCount.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also