Click or drag to resize

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

Adds any content from the specified stream resource 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,
	Stream inStream,
	Uri partUri,
	string mimeType = null,
	bool addPackageRelation = true
)

Parameters

rootDocument  PackagePart
package part, containing the parent root document
inStream  Stream
any content stream
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
07/29/20211.6.2.0addPackageRelation added as an additional optional parameter, defining if a package relation should be added.
See Also