是否可以读取所有设置为创建用户配置文件同步连接的字段。到目前为止,我只能获得连接的显示名称。
请帮忙。
提前致谢。
SPServiceContext context = SPServiceContext.GetContext(site);
UserProfileConfigManager upcm = new UserProfileConfigManager(context);
ConnectionManager cm = upcm.ConnectionManager;
foreach (Connection cn in cm)
{
Console.WriteLine("Connection Name " + cn.DisplayName);
}