Exemplo n.º 1
0
        /// <summary>
        /// Creates a read-only PropertySet.
        /// </summary>
        /// <param name="basePropertySet">The base property set.</param>
        /// <returns>PropertySet</returns>
        private static PropertySet CreateReadonlyPropertySet(BasePropertySet basePropertySet)
        {
            PropertySet propertySet = new PropertySet(basePropertySet);

            propertySet.isReadOnly = true;
            return(propertySet);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of PropertySet.
        /// </summary>
        /// <param name="basePropertySet">The base property set to base the property set upon.</param>
        /// <param name="additionalProperties">Additional properties to include in the property set. Property definitions are available as static members from schema classes (for example, EmailMessageSchema.Subject, AppointmentSchema.Start, ContactSchema.GivenName, etc.)</param>
        public PropertySet(BasePropertySet basePropertySet, IEnumerable <PropertyDefinitionBase> additionalProperties)
        {
            this.basePropertySet = basePropertySet;

            if (additionalProperties != null)
            {
                this.additionalProperties.AddRange(additionalProperties);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of PropertySet.
 /// </summary>
 /// <param name="basePropertySet">The base property set to base the property set upon.</param>
 public PropertySet(BasePropertySet basePropertySet)
     : this(basePropertySet, null)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of PropertySet.
 /// </summary>
 /// <param name="basePropertySet">The base property set to base the property set upon.</param>
 /// <param name="additionalProperties">Additional properties to include in the property set. Property definitions are available as static members from schema classes (for example, EmailMessageSchema.Subject, AppointmentSchema.Start, ContactSchema.GivenName, etc.)</param>
 public PropertySet(BasePropertySet basePropertySet, params PropertyDefinitionBase[] additionalProperties)
     : this(basePropertySet, (IEnumerable <PropertyDefinitionBase>)additionalProperties)
 {
 }