 | AutomationMLContainerAddLibrary(PackagePart, String, Uri, Boolean) Method |
Adds a library file to the package and creates relationships to the package
and to the package containing the root document using the
Library.
Namespace: Aml.Engine.AmlObjectsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic PackagePart AddLibrary(
PackagePart rootDocument,
string fileName,
Uri partUri,
bool addPackageRelation = true
)
Public Function AddLibrary (
rootDocument As PackagePart,
fileName As String,
partUri As Uri,
Optional addPackageRelation As Boolean = true
) As PackagePart
public:
PackagePart^ AddLibrary(
PackagePart^ rootDocument,
String^ fileName,
Uri^ partUri,
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
- addPackageRelation Boolean (Optional)
-
optional parameter, defining if a package relation should be added
Return Value
PackagePart
added part
Revision HistoryDate | Version | Description |
---|
08/03/2021 | 1.6.3.0 | addPackageRelation
added as an additional optional parameter, defining if a package relation should be added.
|
See Also