Class Package
- Namespace
- Dynamicweb.Deployment
- Assembly
- Dynamicweb.Core.dll
Reprensents a deployment package (zip file).
public class Package
- Inheritance
-
Package
- Inherited Members
Constructors
Package(string)
Initializes a new instance of the Package class.
public Package(string filePath)
Parameters
filePath
stringThe file path.
Properties
PackageFilePath
Gets the package file path.
public string PackageFilePath { get; }
Property Value
- string
The package file path.
Methods
ReadDataGroup(string)
Reads the data group.
public DataGroup? ReadDataGroup(string dataGroupId)
Parameters
dataGroupId
stringThe data group identifier.
Returns
- DataGroup
DataGroup.
ReadDataGroups()
Reads the data groups.
public IEnumerable<DataGroup> ReadDataGroups()
Returns
- IEnumerable<DataGroup>
IEnumerable<DataGroup>.
ReadDataItems(string, string)
Reads the data items.
public IEnumerable<DataItem> ReadDataItems(string dataGroupId, string dataItemTypeId)
Parameters
Returns
- IEnumerable<DataItem>
IEnumerable<DataItem>.
ReadDataItems(string, string, IEnumerable<string>)
Reads the data items.
public IEnumerable<DataItem> ReadDataItems(string dataGroupId, string dataItemTypeId, IEnumerable<string> itemIds)
Parameters
dataGroupId
stringThe data group identifier.
dataItemTypeId
stringThe data item type identifier.
itemIds
IEnumerable<string>The item ids.
Returns
- IEnumerable<DataItem>
IEnumerable<DataItem>.
ReadPackageInfo()
Reads the package information.
public PackageInfo? ReadPackageInfo()
Returns
WriteDataGroup(DataGroup)
Writes the data group.
public void WriteDataGroup(DataGroup dataGroup)
Parameters
dataGroup
DataGroupThe data group.
WriteDataItems(string, string, IEnumerable<DataItem>)
Writes the data items.
public int WriteDataItems(string dataGroupId, string dataItemTypeId, IEnumerable<DataItem> dataItems)
Parameters
dataGroupId
stringThe data group identifier.
dataItemTypeId
stringThe data item type identifier.
dataItems
IEnumerable<DataItem>The data items.
Returns
WritePackageInfo(PackageInfo)
Writes the package information.
public void WritePackageInfo(PackageInfo packageInfo)
Parameters
packageInfo
PackageInfoThe package information.