Property Name
Name
Gets or sets the display name of the document.
public string Name { get; set; }
Property Value
- string
The document name. Cannot be
null, empty, or whitespace.
Examples
var metadata = new DocumentMetadata(attachment);
// Override the default name derived from the file name
metadata.Name = "Q4 2024 Financial Report";
Remarks
This name is stored in partition metadata and used for source attribution in query results. By default, it is set to the attachment's file name during construction.
Exceptions
- ArgumentException
Thrown when setting a
null, empty, or whitespace value.