Metadata Constructor (String, LoadOptions)
Initializes a new instance of the Metadata class.

Namespace: GroupDocs.Metadata
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 20.10
Syntax
public Metadata(
	string filePath,
	LoadOptions loadOptions
)

Parameters

filePath
Type: SystemString
A string that contains the full name of the file from which to create a Metadata instance.
loadOptions
Type: GroupDocs.Metadata.OptionsLoadOptions
Additional options to use when loading a document.
Remarks
Examples
This example demonstrates how to load a password-protected document.
C#
// Specify the password
var loadOptions = new LoadOptions
{
    Password = "123"
};

using (var metadata = new Metadata(Constants.ProtectedDocx, loadOptions))
{
    // Extract, edit or remove metadata here
}
See Also