Class FolderProvider
Inheritance
FolderProvider
Assembly: DotNetNuke.dll
Syntax
public abstract class FolderProvider
Constructors
FolderProvider()
Declaration
protected FolderProvider()
Properties
IsStorageSecure
Declaration
public virtual bool IsStorageSecure { get; }
Property Value
RequiresNetworkConnectivity
Declaration
public virtual bool RequiresNetworkConnectivity { get; }
Property Value
SupportsMappedPaths
Declaration
public virtual bool SupportsMappedPaths { get; }
Property Value
SupportsMoveFile
Declaration
public virtual bool SupportsMoveFile { get; }
Property Value
SupportsMoveFolder
Declaration
public virtual bool SupportsMoveFolder { get; }
Property Value
Methods
AddFile(IFolderInfo, string, Stream)
Declaration
public abstract void AddFile(IFolderInfo folder, string fileName, Stream content)
Parameters
AddFolder(string, FolderMappingInfo)
Declaration
public abstract void AddFolder(string folderPath, FolderMappingInfo folderMapping)
Parameters
AddFolder(string, FolderMappingInfo, string)
Declaration
public virtual void AddFolder(string folderPath, FolderMappingInfo folderMapping, string mappedPath)
Parameters
CopyFile(string, string, string, FolderMappingInfo)
Declaration
public virtual void CopyFile(string folderPath, string fileName, string newFolderPath, FolderMappingInfo folderMapping)
Parameters
DeleteFile(IFileInfo)
Declaration
public abstract void DeleteFile(IFileInfo file)
Parameters
DeleteFolder(IFolderInfo)
Declaration
public abstract void DeleteFolder(IFolderInfo folder)
Parameters
EncryptValue(string)
Declaration
public string EncryptValue(string settingValue)
Parameters
Type |
Name |
Description |
string |
settingValue |
|
Returns
FileExists(IFolderInfo, string)
Declaration
public abstract bool FileExists(IFolderInfo folder, string fileName)
Parameters
Returns
FolderExists(string, FolderMappingInfo)
Declaration
public abstract bool FolderExists(string folderPath, FolderMappingInfo folderMapping)
Parameters
Returns
GetEncryptedSetting(Hashtable, string)
Declaration
public string GetEncryptedSetting(Hashtable folderMappingSettings, string settingName)
Parameters
Returns
GetFileAttributes(IFileInfo)
Declaration
public abstract FileAttributes? GetFileAttributes(IFileInfo file)
Parameters
Returns
GetFileSize(IFileInfo)
Declaration
public abstract long GetFileSize(IFileInfo file)
Parameters
Returns
GetFileStream(IFileInfo)
Declaration
public abstract Stream GetFileStream(IFileInfo file)
Parameters
Returns
GetFileStream(IFolderInfo, IFileInfo, int)
Declaration
public virtual Stream GetFileStream(IFolderInfo folder, IFileInfo file, int version)
Parameters
Returns
GetFileStream(IFolderInfo, string)
Declaration
public abstract Stream GetFileStream(IFolderInfo folder, string fileName)
Parameters
Returns
GetFileUrl(IFileInfo)
Declaration
public abstract string GetFileUrl(IFileInfo file)
Parameters
Returns
GetFiles(IFolderInfo)
Declaration
public abstract string[] GetFiles(IFolderInfo folder)
Parameters
Returns
GetFolderProviderIconPath()
Declaration
public abstract string GetFolderProviderIconPath()
Returns
GetHashCode(IFileInfo)
Declaration
public virtual string GetHashCode(IFileInfo file)
Parameters
Returns
GetHashCode(IFileInfo, Stream)
Declaration
public virtual string GetHashCode(IFileInfo file, Stream fileContent)
Parameters
Returns
GetLastModificationTime(IFileInfo)
Declaration
public abstract DateTime GetLastModificationTime(IFileInfo file)
Parameters
Returns
GetProviderList()
Declaration
public static Dictionary<string, FolderProvider> GetProviderList()
Returns
GetSettingsControlVirtualPath()
Declaration
public virtual string GetSettingsControlVirtualPath()
Returns
GetSubFolders(string, FolderMappingInfo)
Declaration
public abstract IEnumerable<string> GetSubFolders(string folderPath, FolderMappingInfo folderMapping)
Parameters
Returns
Instance(string)
Declaration
public static FolderProvider Instance(string friendlyName)
Parameters
Type |
Name |
Description |
string |
friendlyName |
|
Returns
IsInSync(IFileInfo)
Declaration
public abstract bool IsInSync(IFileInfo file)
Parameters
Returns
MoveFile(IFileInfo, IFolderInfo)
Declaration
public virtual void MoveFile(IFileInfo file, IFolderInfo destinationFolder)
Parameters
MoveFolder(string, string, FolderMappingInfo)
Declaration
public virtual void MoveFolder(string folderPath, string newFolderPath, FolderMappingInfo folderMapping)
Parameters
RenameFile(IFileInfo, string)
Declaration
public abstract void RenameFile(IFileInfo file, string newFileName)
Parameters
RenameFolder(IFolderInfo, string)
Declaration
public abstract void RenameFolder(IFolderInfo folder, string newFolderName)
Parameters
SetFileAttributes(IFileInfo, FileAttributes)
Declaration
public abstract void SetFileAttributes(IFileInfo file, FileAttributes fileAttributes)
Parameters
SupportsFileAttributes()
Declaration
public abstract bool SupportsFileAttributes()
Returns
UpdateFile(IFileInfo, Stream)
Declaration
public abstract void UpdateFile(IFileInfo file, Stream content)
Parameters
UpdateFile(IFolderInfo, string, Stream)
Declaration
public abstract void UpdateFile(IFolderInfo folder, string fileName, Stream content)
Parameters
Extension Methods