Пользовательские свойства файла

BOUNTY НАЧИНАЕТСЯ, НО ХОЧУ ПРИМЕРЫ В C #

Мне нужно следующее:

В моей заявке есть документы. Документы, которые необходимо постоянно проверять. Когда я извлекаю документ из своего приложения, мне нужно добавить в файл пользовательские свойства, чтобы я мог идентифицировать его позже, когда собираюсь проверить документ.

Я пытался использовать OleDocumentProperties из DSOFile, используя следующий код, но безуспешно:

 // Adding custom properties to file (Parameters: FileName, custom property name, value, debug: true/false
 DocumentProperties.WriteDocumentProperty(filename, "dms_dossiernummer", _dossiernummer.ToString(), false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_zaaknaam", ReturnZaaknaam(_dossiernummer), false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_verantw_medew", ReturnVerantwMedew(_dossiernummer), false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_document_path", path, false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_bestandsnaam", bestandsNaam, false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_bestands_id", bestandId, false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_is_checkedout", "true", false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_dossier_map_id", dossierMapId, false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_bestand_versie_nummer", Queries.Dms.Selects.GetDocumentVersion(
                                                        Convert.ToInt32(bestandId)).ToString(), false);
 DocumentProperties.WriteDocumentProperty(filename, "dms_bestands_locatie", path, false);

Кто-нибудь знает другой способ добавить пользовательские свойства файла в файл?

Ответы на вопрос(5)

Ваш ответ на вопрос