How to find active BOM for an item through code?

how to find active bom of an item through code in ax 2009?

You can use \Data Dictionary\Tables\InventTable\Methods\bomId