Create Metadata-only Documents

To create a document that has metadata but no file, use a different overload of DocInfo.Create:

       IDocInfo doc = DocInfo.Create(task.TaskConfig,
		"http://www.example.com/metadataOnly");

You might create a metadata-only document when items in a repository do not include file data (for example, appointments in a calendar, tasks in a task list or rows in a table). Alternatively, you might create a metadata-only document and then assign a file to it later:

       doc.File = DocFile.Create("testDocument.doc", true);