The metadatatype parameter specifies the type of metadata represented by the string.
The metadatatype parameter must be one of the following values from the
MSODOCEXMETADATA enumeration type.
Table 8. Enumerated values of MSODOCEXMETADATA
Value Description
msodocexMetadataTitle The title of the document.
msodocexMetadataAuthorThe author of the document
msodocexMetadataSubjectString that describes the subject matter of the document (for
example, business or science).
msodocexMetadataKeywords Keyword relevant to the document content.
msodocexMetadataCreatorThe creator of the document, possibly distinct from the author.
msodocexMetadataProducerThe producer of the document, possibly distinct from the author
or creator.
msodocexMetadataCategoryString that describes the type of document (for example, memo,
article, or book).
msodocexMetadataStatus Status of the document. This field can reflect where the
document is in the publication process (for example, draft or
final).
msodocexMetadataCommentsMiscellaneous comments relevant to the document.
For a given document, each metadata type can have only one string associated with it.
So, for example, if the document has multiple keywords, they are passed to the add-in
as one concatenated string.
The pwchValue parameter specifies a Unicode string that contains the metadata itself.
How the add-in incorporates the text-string metadata into the exported document
depends on the implementation details of the export code and the type of fixed-format
used in the exported document.
Publisher calls the HrAddDocumentMetadataDate method to specify document
metadata in the form of a FILETIME structure.
ﾉ Expand table
HrAddDocumentMetadataDate