 | 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.AmlObjectsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic PackagePart AddAnyContent(
PackagePart rootDocument,
Stream inStream,
Uri partUri,
string mimeType = null,
bool addPackageRelation = true
)
Public Function AddAnyContent (
rootDocument As PackagePart,
inStream As Stream,
partUri As Uri,
Optional mimeType As String = Nothing,
Optional addPackageRelation As Boolean = true
) As PackagePart
public:
PackagePart^ AddAnyContent(
PackagePart^ rootDocument,
Stream^ inStream,
Uri^ partUri,
String^ mimeType = nullptr,
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 HistoryDate | Version | Description |
---|
07/29/2021 | 1.6.2.0 | addPackageRelation
added as an additional optional parameter, defining if a package relation should be added.
|
See Also