Class PnPPackageExtensions
Extension class for PnP OpenXML package files
Inheritance
System.Object
PnPPackageExtensions
Namespace: PnP.Framework.Provisioning.Connectors.OpenXML
Assembly: PnP.Framework.dll
Syntax
public static class PnPPackageExtensions : object
Methods
AsInternalFilename(String)
Return filename as Internal filename
Declaration
public static string AsInternalFilename(this string filename)
Parameters
System.String
filename
Name of the file |
Returns
System.String
Returns filename as Internal filename |
PackTemplate(PnPInfo)
Packs template as a stream array
Declaration
public static Byte[] PackTemplate(this PnPInfo pnpInfo)
Parameters
PnPInfo
pnpInfo
PnPInfo object |
Returns
Byte[]
Returns stream as an array |
PackTemplateAsStream(PnPInfo)
Packs template as a memory stream
Declaration
public static MemoryStream PackTemplateAsStream(this PnPInfo pnpInfo)
Parameters
PnPInfo
pnpInfo
PnPInfo object |
Returns
MemoryStream
Returns MemoryStream |
UnpackTemplate(Byte[])
Unpacks template into PnP OpenXML package info object
Declaration
public static PnPInfo UnpackTemplate(this Byte[] packageBytes)
Parameters
Byte[]
packageBytes
Package Byte |
Returns
PnPInfo
Returns site template |
UnpackTemplate(MemoryStream)
Unpacks template into PnP OpenXML package info object based on memory stream
Declaration
public static PnPInfo UnpackTemplate(this MemoryStream stream)
Parameters
MemoryStream
stream
MemoryStream |
Returns
PnPInfo
Returns site template |