コード例 #1
0
        public static void UpdateServiceEndpoint(CrmOrganization org, CrmServiceEndpoint serviceEndpoint)
        {
            if (org == null)
            {
                throw new ArgumentNullException("org");
            }
            else if (serviceEndpoint == null)
            {
                throw new ArgumentNullException("serviceEndpoint");
            }
            ServiceEndpoint sep = serviceEndpoint.GenerateCrmEntities()[ServiceEndpoint.EntityLogicalName] as ServiceEndpoint;

            org.OrganizationService.Update(sep);
            OrganizationHelper.RefreshServiceEndpoint(org, serviceEndpoint);
        }