PropsGetCount Method (MFReaderDSClass)
property's node (for example, empty string or "info")
number of properties in the node
Gets count of properties in a selected node
Syntax
Public Overridable Sub PropsGetCount( _
   ByVal _bsNodeName As String, _
   ByRef _pnCount As Integer _
) 
public virtual void PropsGetCount( 
   string _bsNodeName,
   out int _pnCount
)
public procedure PropsGetCount( 
    _bsNodeName: String;
   Out  _pnCount: Integer
); virtual; 
public: virtual void PropsGetCount( 
   BSTR* _bsNodeName,
   [PARAMFLAG::Out] int _pnCount
) 

Parameters

_bsNodeName
property's node (for example, empty string or "info")
_pnCount
number of properties in the node
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

MFReaderDSClass Class
MFReaderDSClass Members