Gets the direct Url to the file.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public string GetUrl( IFileInfo file ) |
| Visual Basic |
|---|
Public Function GetUrl ( file As IFileInfo ) As String |
Parameters
- file
- Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to get the Url.
Return Value
The direct Url to the file.Implements
IFileManager..::..GetUrl(IFileInfo)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown when file is null. |
| DotNetNuke.Services.FileSystem..::..FolderProviderException | Thrown when the underlying system throw an exception. |