Class FileUrlBase
Base class for file URL representation.
public abstract class FileUrlBase : IFileUrl
- Inheritance
-
objectFileUrlBase
- Implements
- Derived
- Extension Methods
Constructors
FileUrlBase(string, bool)
Initializes an instance of FileUrl class.
protected FileUrlBase(string relativePath, bool isImage)
Parameters
relativePath
stringFile relative path (starting with ~/).
isImage
boolIndicates if file represents an image.
Fields
relativePath
Relative path of the file without parametrization applied.
protected string relativePath
Field Value
- string
Properties
IsImage
Indicates if the file represents an image.
public bool IsImage { get; }
Property Value
- bool
QueryStringParameters
Collection of query string parameters that are appended to the RelativePath.
public NameValueCollection QueryStringParameters { get; }
Property Value
- NameValueCollection
RelativePath
Relative path (starting with ~/) of the file.
public string RelativePath { get; }
Property Value
- string
Methods
BuildUrl(string)
Builds the path based on given path and current query string.
protected string BuildUrl(string path)
Parameters
path
stringPath.
Returns
- string
Clone()
Clones the file URL representation to provide immutability support.
public abstract IFileUrl Clone()