Gets the direct Url to the file.

Namespace: DotNetNuke.Services.FileSystem
Assembly: 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

ExceptionCondition
System..::..ArgumentNullExceptionThrown when file is null.
DotNetNuke.Services.FileSystem..::..FolderProviderExceptionThrown when the underlying system throw an exception.

See Also