コード例 #1
0
        public CrmOrganization(ConnectionDetail detail, ProgressIndicator prog, IOrganizationService Service)
        {
            if (detail == null)
            {
                throw new ArgumentNullException("detail");
            }

            OrganizationServiceUrl = detail.OrganizationServiceUrl;
            WebApplicationUrl      = detail.WebApplicationUrl;

            OrganizationFriendlyName = detail.OrganizationFriendlyName;
            OrganizationUniqueName   = detail.Organization;
            ServerBuild         = new Version(detail.OrganizationVersion);
            OrganizationService = Service;
            ConnectionDetail    = detail;

            OrganizationHelper.OpenConnection(this, OrganizationHelper.LoadMessages(this), prog);
        }