Table of contents
TOC
Collapse the table of content
Expand the table of content

OpenXMLConnector Class

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Connector that stores all the files into a unique .PNP OpenXML package

Namespace:OfficeDevPnP.Core.Framework.Provisioning.Connectors
Assembly: OfficeDevPnP.Core.dll

Inheritance Hierarchy

System.Object
OfficeDevPnP.Core.Framework.Provisioning.Connectors.FileConnectorBase

Syntax

public class OpenXMLConnector: FileConnectorBase, ICommitableFileConnector

Constructors

NameDescription
OpenXMLConnector(Stream)OpenXMLConnector constructor. Allows to manage a .PNP OpenXML package through an in memory stream.
OpenXMLConnector(String, FileConnectorBase, String, X509Certificate2)OpenXMLConnector constructor. Allows to manage a .PNP OpenXML package file through a supporting persistence connector.

Methods

NameDescription
Commit()Commits the file
DeleteFile(String)Deletes a file from the default container
DeleteFile(String, String)Deletes a file from the specified container
GetFile(String)Gets a file as string from the default container
GetFile(String, String)Gets a file as string from the specified container
GetFilenamePart(String)Returns a filename without a path
GetFiles()Get the files available in the default container
GetFiles(String)Get the files available in the specified container
GetFileStream(String)Gets a file as stream from the default container
GetFileStream(String, String)Gets a file as stream from the specified container
GetFolders()Get the folders of the default container
GetFolders(String)Get the folders of a specified container
SaveFileStream(String, Stream)Saves a stream to the default container with the given name. If the file exists it will be overwritten
SaveFileStream(String, String, Stream)Saves a stream to the specified container with the given name. If the file exists it will be overwritten

See also

© 2018 Microsoft