InforPath获取当前用户

在表单中获取当前用户,可采用this.Application.User.UserName

            XPathNavigator navigatior = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:userName", this.NamespaceManager);
            navigatior.SetValue(this.Application.User.UserName);

  UserName,无域名

    LoginName, 有域名

原文地址:https://www.cnblogs.com/huangll/p/3719279.html