• CRM2011 实例IOrganizationService


      #region 初始化Service
            public IOrganizationService GetOrganizationService()
            {
    
                Uri uri = new Uri(serUrl + "/XRMServices/2011/Organization.svc");
                System.ServiceModel.Description.ClientCredentials credentials = new ClientCredentials();
                credentials.Windows.ClientCredential = new System.Net.NetworkCredential(userName, password, domain);
               // credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;
             
                OrganizationServiceProxy foa = new OrganizationServiceProxy(uri, null, credentials, null);
                IOrganizationService service = (IOrganizationService)foa;
    
                return service;
            }
    

      

  • 相关阅读:
    每日总结59
    每日总结58
    每日总结57
    每日总结56
    每日总结55
    每日总结54
    每日总结53
    每日总结52
    学习日报
    学习日报
  • 原文地址:https://www.cnblogs.com/hellohongfu/p/2731060.html
Copyright © 2020-2023  润新知