/// <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); }
/// <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); } }
/// <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) { }
/// <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) { }