PropsGetByIndex Method (MFLiveClass)
node name (for example, empty string or "info")
property's index
property's name
property's value
indicates whether property is internal node ("1") or not ("0")
Gets a property's name and value by property's index.
Syntax
Public Overridable Sub PropsGetByIndex( _
   ByVal _bsNodeName As String, _
   ByVal _nIndex As Integer, _
   ByRef _pbsPropName As String, _
   ByRef _pbsPropValue As String, _
   ByRef _pbNode As Integer _
) 
public virtual void PropsGetByIndex( 
   string _bsNodeName,
   int _nIndex,
   out string _pbsPropName,
   out string _pbsPropValue,
   out int _pbNode
)
public procedure PropsGetByIndex( 
    _bsNodeName: String;
    _nIndex: Integer;
   Out  _pbsPropName: String;
   Out  _pbsPropValue: String;
   Out  _pbNode: Integer
); virtual; 
public: virtual void PropsGetByIndex( 
   BSTR* _bsNodeName,
   int _nIndex,
   [PARAMFLAG::Out] BSTR* _pbsPropName,
   [PARAMFLAG::Out] BSTR* _pbsPropValue,
   [PARAMFLAG::Out] int _pbNode
) 

Parameters

_bsNodeName
node name (for example, empty string or "info")
_nIndex
property's index
_pbsPropName
property's name
_pbsPropValue
property's value
_pbNode
indicates whether property is internal node ("1") or not ("0")
Example

Here is example of how to get all the properties from "info" node, i.e. get all the information about a file:

string strInfo = "";
int nCount;
m_objMFReader.PropsGetCount("info", out nCount);
for (int i = 0; i < nCount; i++)
{
    string strName;
    string strValue;
    int isNode;
    m_objMFReader.PropsGetByIndex("info", i, out strName, out strValue, out isNode);
    strInfo += strName + ": " + strValue + Environment.NewLine;
}
See Also

Reference

MFLiveClass Class
MFLiveClass Members