MFORMATSLib Namespace > MFWriterClass Class : PropsGetByIndex Method |
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 )
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; }