/// <summary>
        /// Internal constructor.
        /// </summary>
        /// <param name="service">EWS service to which this object belongs.</param>
        internal ServiceObject(ExchangeService service)
        {
            EwsUtilities.ValidateParam(service, "service");
            EwsUtilities.ValidateServiceObjectVersion(this, service.RequestedServerVersion);

            this.service     = service;
            this.propertyBag = new PropertyBag(this);
        }