GroupDocsGists
10/19/2017 - 11:34 AM

CreateResourceRef.cs

//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
ResourceRef expectedValue = new ResourceRef
{
    DocumentUri = "074255bf-78bc-4002-89dc-cd7538b40fe0",
    InstanceId = "42a841b7-48d4-4988-8988-53d2c6e7525d"
};

// create XmpMediaManagementPackage
XmpMediaManagementPackage package = new XmpMediaManagementPackage();

// update DerivedFrom property
package.SetDerivedFrom(expectedValue);

// check value
ResourceRef value = (ResourceRef)package["xmpMM:DerivedFrom"];