//----------------------------------------------------------------------------- // getLFileStats //----------------------------------------------------------------------------- /// <summary> /// Retrieve statistics for a particular logical file in a particular /// database. /// </summary> /// <param name="uiDatabaseNum"> /// Number of the database for which logical file /// statistics are to be returned. /// This number should be between 0 and N - 1, where N = Number of /// databases for which we have statistics. /// The number of databases may be determined by calling the /// <see cref="getGeneralStats"/> method. /// </param> /// <param name="uiLFileNum"> /// Number of the logical file for which logical file /// statistics are to be returned. /// This number should be between 0 and N - 1, where N = Number of /// logical files for the specified database. The number of logical /// files for a particular database is found in the /// <see cref="CS_XFLM_DB_STATS.uiNumLFiles"/> member of the /// <see cref="CS_XFLM_DB_STATS"/> object, which is returned from the /// <see cref="getDbStats"/> method. /// </param> /// <param name="lFileStats"> /// A <see cref="CS_XFLM_LFILE_STATS"/> object to return the requested /// statistics in. If null, an object will be allocated. /// </param> /// <returns> /// A <see cref="CS_XFLM_LFILE_STATS"/> object is returned which /// holds statistics for the specified logical file of the /// specified database. /// </returns> public CS_XFLM_LFILE_STATS getLFileStats( uint uiDatabaseNum, uint uiLFileNum, CS_XFLM_LFILE_STATS lFileStats) { RCODE rc; if (lFileStats == null) { lFileStats = new CS_XFLM_LFILE_STATS(); } if ((rc = xflaim_DbSystemStats_getLFileStats(m_pStats, uiDatabaseNum, uiLFileNum, lFileStats)) != 0) { throw new XFlaimException(rc); } return(lFileStats); }
//----------------------------------------------------------------------------- // getLFileStats //----------------------------------------------------------------------------- /// <summary> /// Retrieve statistics for a particular logical file in a particular /// database. /// </summary> /// <param name="uiDatabaseNum"> /// Number of the database for which logical file /// statistics are to be returned. /// This number should be between 0 and N - 1, where N = Number of /// databases for which we have statistics. /// The number of databases may be determined by calling the /// <see cref="getGeneralStats"/> method. /// </param> /// <param name="uiLFileNum"> /// Number of the logical file for which logical file /// statistics are to be returned. /// This number should be between 0 and N - 1, where N = Number of /// logical files for the specified database. The number of logical /// files for a particular database is found in the /// <see cref="CS_XFLM_DB_STATS.uiNumLFiles"/> member of the /// <see cref="CS_XFLM_DB_STATS"/> object, which is returned from the /// <see cref="getDbStats"/> method. /// </param> /// <param name="lFileStats"> /// A <see cref="CS_XFLM_LFILE_STATS"/> object to return the requested /// statistics in. If null, an object will be allocated. /// </param> /// <returns> /// A <see cref="CS_XFLM_LFILE_STATS"/> object is returned which /// holds statistics for the specified logical file of the /// specified database. /// </returns> public CS_XFLM_LFILE_STATS getLFileStats( uint uiDatabaseNum, uint uiLFileNum, CS_XFLM_LFILE_STATS lFileStats) { RCODE rc; if (lFileStats == null) { lFileStats = new CS_XFLM_LFILE_STATS(); } if ((rc = xflaim_DbSystemStats_getLFileStats( m_pStats, uiDatabaseNum, uiLFileNum, lFileStats)) != 0) { throw new XFlaimException( rc); } return( lFileStats); }
private static extern RCODE xflaim_DbSystemStats_getLFileStats( IntPtr pStats, uint uiDatabaseNum, uint uiLFileNum, [Out] CS_XFLM_LFILE_STATS pLFileStats);