Adds a new custom document property with the specified value (System.String, System.DateTime, System.Boolean, System.Int32 or System.Double) to a workbook and returns a reference to it.
Parameters
- name
- The name of the new document property.
- value
- The value of the new document property which must be an instance of System.String with a length of 255 characters or less, System.DateTime on or after January 1st, 1901, System.Boolean, System.Int32, or a valid System.Double.
Return Value
The added document property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2