MFORMATSDSLib Namespace > MFReaderDSClass Class : PropsGetCount Method |
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 )
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; }