Click or drag to resize

AutomationMLContainerAddAnyContent(PackagePart, String, Uri, String, Boolean) Method

Adds any content to the package creating relationships to the package and to the part, containing the root document using the relationship type AnyContent.

Namespace: Aml.Engine.AmlObjects
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public PackagePart AddAnyContent(
	PackagePart rootDocument,
	string fileName,
	Uri partUri,
	string mimeType = null,
	bool addPackageRelation = true
)

Parameters

rootDocument  PackagePart
package part, containing the parent root document
fileName  String
full name of the file which should be added
partUri  Uri
package internal name of the part
mimeType  String  (Optional)
optional mime type, the default mime type for the relationship is used if empty
addPackageRelation  Boolean  (Optional)
optional parameter, defining if a package relation should be added

Return Value

PackagePart
PackagePart.
Revision History
DateVersionDescription
08/03/20211.6.3.0addPackageRelation added as an additional optional parameter, defining if a package relation should be added.
See Also