C# Класс FakeHttpContext.FakeConfigMapPath

Наследование: IConfigMapPath
Показать файл Открыть проект

Открытые методы

Метод Описание
GetAppPathForPath ( string siteID, string path ) : string

Gets the virtual-directory name associated with a specific site.

GetDefaultSiteNameAndID ( string &siteName, string &siteID ) : void

Populates the default site name and the site ID.

GetMachineConfigFilename ( ) : string

Gets the machine-configuration file name.

GetPathConfigFilename ( string siteID, string path, string &directory, string &baseName ) : void

Populates the directory and name of the configuration file based on the site ID and site path.

GetRootWebConfigFilename ( ) : string

Gets the name of the configuration file at the Web root.

MapPath ( string siteID, string path ) : string

Gets the physical directory path based on the site ID and URL associated with the site.

ResolveSiteArgument ( string siteArgument, string &siteName, string &siteID ) : void

Populates the site name and site ID based on a site argument value.

Описание методов

GetAppPathForPath() публичный Метод

Gets the virtual-directory name associated with a specific site.
public GetAppPathForPath ( string siteID, string path ) : string
siteID string A unique identifier for the site.
path string The URL associated with the site.
Результат string

GetDefaultSiteNameAndID() публичный Метод

Populates the default site name and the site ID.
public GetDefaultSiteNameAndID ( string &siteName, string &siteID ) : void
siteName string The default site name.
siteID string A unique identifier for the site.
Результат void

GetMachineConfigFilename() публичный Метод

Gets the machine-configuration file name.
public GetMachineConfigFilename ( ) : string
Результат string

GetPathConfigFilename() публичный Метод

Populates the directory and name of the configuration file based on the site ID and site path.
public GetPathConfigFilename ( string siteID, string path, string &directory, string &baseName ) : void
siteID string A unique identifier for the site.
path string The URL associated with the site.
directory string The physical directory of the configuration path.
baseName string The name of the configuration file.
Результат void

GetRootWebConfigFilename() публичный Метод

Gets the name of the configuration file at the Web root.
public GetRootWebConfigFilename ( ) : string
Результат string

MapPath() публичный Метод

Gets the physical directory path based on the site ID and URL associated with the site.
public MapPath ( string siteID, string path ) : string
siteID string A unique identifier for the site.
path string The URL associated with the site.
Результат string

ResolveSiteArgument() публичный Метод

Populates the site name and site ID based on a site argument value.
public ResolveSiteArgument ( string siteArgument, string &siteName, string &siteID ) : void
siteArgument string The site name or site identifier.
siteName string The default site name.
siteID string A unique identifier for the site.
Результат void