Adds a File
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Never)] [ObsoleteAttribute("Deprecated in DNN 6.0. It has been replaced by FileManager.Instance.AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite) ")] public static string AddFile( string strFile, int PortalId, bool ClearCache, FolderInfo folder ) |
Visual Basic |
---|
<EditorBrowsableAttribute(EditorBrowsableState.Never)> <ObsoleteAttribute("Deprecated in DNN 6.0. It has been replaced by FileManager.Instance.AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite) ")> Public Shared Function AddFile ( strFile As String, PortalId As Integer, ClearCache As Boolean, folder As FolderInfo ) As String |
Parameters
- strFile
- Type: System..::..String
The File Name
- PortalId
- Type: System..::..Int32
The Id of the Portal
- ClearCache
- Type: System..::..Boolean
A flag that indicates whether the file cache should be cleared
- folder
- Type: DotNetNuke.Services.FileSystem..::..FolderInfo
paramfolderM:DotNetNuke.Common.Utilities.FileSystemUtils.AddFile(System.String,System.Int32,System.Boolean,DotNetNuke.Services.FileSystem.FolderInfo)
Return Value
returnsM:DotNetNuke.Common.Utilities.FileSystemUtils.AddFile(System.String,System.Int32,System.Boolean,DotNetNuke.Services.FileSystem.FolderInfo)
Remarks
This method is called by the SynchonizeFolder method, when the file exists in the file system
but not in the Database