/// <summary> /// Initializes a vCardProperty with the specified /// name, value and group. /// </summary> /// <param name="name"> /// The name of the vCard property. /// </param> /// <param name="value"> /// The value of the vCard property. /// </param> /// <param name="group"> /// The group name of the vCard property. /// </param> public Property(string name, string value, string group) { _group = group; _name = name; Subproperties = new SubpropertyCollection(); Value = value; }
/// <summary> /// Creates a <see cref="Property" /> with /// the specified name and date/time as a value. /// </summary> /// <param name="name">The name of the property.</param> /// <param name="value">The date/time value.</param> public Property(string name, DateTime value) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } _name = name; Subproperties = new SubpropertyCollection(); Value = value; }
/// <summary> /// Initializes the vCard property with the specified /// name and values. /// </summary> public Property(string name, ValueCollection values) : this() { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } if (values == null) { throw new ArgumentNullException("values"); } Subproperties = new SubpropertyCollection(); _name = name; Value = values; }
/// <summary> /// Creates a <see cref="Property" /> object with the /// specified name and value. /// </summary> /// <remarks> /// The vCard specification supports multiple values in /// certain fields, such as the N field. The value specified /// in this constructor is loaded as the first value. /// </remarks> public Property(string name, string value) { _name = name; Subproperties = new SubpropertyCollection(); Value = value; }
/// <summary> /// Creates a <see cref="Property" /> object /// with the specified name and a null value. /// </summary> /// <param name="name"> /// The name of the property. /// </param> public Property(string name) { _name = name; Subproperties = new SubpropertyCollection(); }
/// <summary> /// Creates a blank <see cref="Property" /> object. /// </summary> public Property() { Subproperties = new SubpropertyCollection(); }