2012-01-18 80 views

回答

0

最后想通了:

SPSite site = new SPSite(url); 
SPServiceContext context = SPServiceContext.GetContext(site); 
var userProfileConfigManager = new UserProfileConfigManager(context); 
ProfilePropertyManager profilePropertyManager = userProfileConfigManager.ProfilePropertyManager; 
CorePropertyManager corePropertyManager = profilePropertyManager.GetCoreProperties(); 
CoreProperty property = corePropertyManager.GetPropertyByName(propertyName); 
TermSet ts = property.TermSet; // DONE! 
相关问题