/// <summary>
 /// Initializes a new instance of ExtendedPropertyDefinition.
 /// </summary>
 /// <param name="propertySet">The property set of the extended property.</param>
 /// <param name="id">The Id of the extended property.</param>
 /// <param name="mapiType">The MAPI type of the extended property.</param>
 public ExtendedPropertyDefinition(
     DefaultExtendedPropertySet propertySet,
     int id,
     MapiPropertyType mapiType)
     : this(mapiType)
 {
     this.propertySet = propertySet;
     this.id          = id;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ExtendedPropertyDefinition"/> class.
        /// </summary>
        /// <param name="propertySet">The extended property set of the extended property.</param>
        /// <param name="name">The name of the extended property.</param>
        /// <param name="mapiType">The MAPI type of the extended property.</param>
        public ExtendedPropertyDefinition(
            DefaultExtendedPropertySet propertySet,
            string name,
            MapiPropertyType mapiType)
            : this(mapiType)
        {
            EwsUtilities.ValidateParam(name, "name");

            this.propertySet = propertySet;
            this.name        = name;
        }