In that documentation link, componentItemType variable should be corrected to criteria
GetTaxonomyContent has following API methods:
public string[] GetTaxonomyContent(Keyword taxonomyKeyword, bool includeBranches);
public string[] GetTaxonomyContent(Keyword[] taxonomyKeywords, bool includeBranches);
public string[] GetTaxonomyContent(Keyword taxonomyKeyword, bool includeBranches, Criteria additionalCriteria);
public string[] GetTaxonomyContent(Keyword[] taxonomyKeywords, bool includeBranches, Criteria additionalCriteria);
Example with criteria:
int iComponentItemType = 16;
String selectedKeywordURI = "tcm:12-800-1024";
Keyword selectedKeywords;
TaxonomyFactory taxonomyFactory = new TaxonomyFactory();
selectedKeywords = taxonomyFactory.GetTaxonomyKeyword(selectedKeywordURI);
TaxonomyRelationManager relationManager = new TaxonomyRelationManager();
ItemTypeCriteria criteria = new ItemTypeCriteria(iComponentItemType);
String[] foundComponentURIS = relationManager.GetTaxonomyContent(selectedKeywords, true, criteria);
Example without criteria (optional):
String selectedKeywordURI = "tcm:12-800-1024";
Keyword selectedKeywords;
TaxonomyFactory taxonomyFactory = new TaxonomyFactory();
selectedKeywords = taxonomyFactory.GetTaxonomyKeyword(selectedKeywordURI);
TaxonomyRelationManager relationManager = new TaxonomyRelationManager();
String[] foundItemsURIS = relationManager.GetTaxonomyContent(selectedKeywords, true);
I hope it helps.
criteria
itself?