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

FileConnectorBase Class

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

Base file connector class

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

Inheritance Hierarchy

System.Object
 OfficeDevPnP.Core.Framework.Provisioning.Connectors.FileConnectorBase
OfficeDevPnP.Core.Framework.Provisioning.Connectors.AzureStorageConnector
OfficeDevPnP.Core.Framework.Provisioning.Connectors.FileSystemConnector
OfficeDevPnP.Core.Framework.Provisioning.Connectors.OpenXMLConnector
OfficeDevPnP.Core.Framework.Provisioning.Connectors.SharePointConnector

Syntax

public abstract class FileConnectorBase

Properties

NameDescription
ParametersParameters required for the file.

Methods

NameDescription
AddParameter(String, Object)Adds Parameter as an object.
AddParameterAsString(String, String)Adds Parameter as a string.
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