IConfigMapPathFactory.Create(String, String) 方法
定义
创建用于在配置文件虚拟路径与物理路径之间进行映射的接口。Creates the interface for the mapping between configuration-file virtual and physical paths.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
System::Web::Configuration::IConfigMapPath ^ Create(System::String ^ virtualPath, System::String ^ physicalPath);
public System.Web.Configuration.IConfigMapPath Create (string virtualPath, string physicalPath);
abstract member Create : string * string -> System.Web.Configuration.IConfigMapPath
Public Function Create (virtualPath As String, physicalPath As String) As IConfigMapPath
参数
- virtualPath
- String
配置文件的虚拟路径。The configuration-file virtual path.
- physicalPath
- String
配置文件的物理路径。The configuration-file physical path.
返回
与指定的配置文件路径映射相关联的 IConfigMapPath 对象。The IConfigMapPath object associated with the specified configuration-file path mapping.
注解
Create .NET Framework 版本3.5 中引入。Create is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系。For more information, see Versions and Dependencies.