ManagementConfigurationPath 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为当前服务器、网站、应用程序、文件或文件夹的配置路径定义容器。 此类不能被继承。
public ref class ManagementConfigurationPath sealed
public sealed class ManagementConfigurationPath
type ManagementConfigurationPath = class
Public NotInheritable Class ManagementConfigurationPath
- 继承
-
ManagementConfigurationPath
示例
以下示例将 对象的详细信息 ManagementConfigurationPath 添加到链接列表。
public LinkedList<string> ConfigurationPath(IServiceProvider sp) {
Connection con = (Connection)sp.GetService(typeof(Connection));
LinkedList<string> llp = new LinkedList<string>();
ManagementConfigurationPath mcp = con.ConfigurationPath;
llp.AddLast("ApplicationPath: " + mcp.ApplicationPath);
llp.AddLast("FolderPath: " + mcp.FolderPath);
llp.AddLast("GetEffectiveConfigurationPath Application: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Application));
llp.AddLast("GetEffectiveConfigurationPath Server: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Server));
llp.AddLast("GetEffectiveConfigurationPath Site: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Site));
llp.AddLast("PathType: " + mcp.PathType.ToString());
llp.AddLast("SiteName: " + mcp.SiteName);
return llp;
}
注解
属性 Microsoft.Web.Management.Server.ManagementUnit.ConfigurationPath 公开当前 ManagementConfigurationPath 对象。
属性
ApplicationPath |
获取应用程序配置路径。 |
FolderPath |
获取文件夹配置路径。 |
PathType |
获取配置路径类型。 |
SiteName |
获取网站名称。 |
方法
CreateApplicationConfigurationPath(String) |
创建新的应用程序配置路径。 |
CreateApplicationConfigurationPath(String, String) |
使用指定的网站名称创建新的应用程序配置路径。 |
CreateFileConfigurationPath(String, String) |
使用指定的应用程序路径创建新的文件配置路径。 |
CreateFileConfigurationPath(String, String, String) |
使用指定的网站名称和应用程序路径创建新的文件配置路径。 |
CreateFolderConfigurationPath(String, String) |
使用指定的应用程序路径创建新的文件夹配置路径。 |
CreateFolderConfigurationPath(String, String, String) |
使用指定的网站名称和应用程序路径创建新的文件夹配置路径。 |
CreateServerConfigurationPath() |
创建新的服务器配置路径。 |
CreateSiteConfigurationPath(String) |
创建新的网站配置路径。 |
GetBindingProtocols(IServiceProvider) |
获取当前绑定协议。 |
GetEffectiveConfigurationPath(ManagementScope) |
获取应用程序、网站或服务器的有效配置路径。 |
GetFrameworkVersion(IServiceProvider) |
获取当前路径类型的.NET Framework版本。 |
GetState() |
为当前服务器、网站、应用程序、文件或文件夹的配置路径定义容器。 此类不能被继承。 |
IsEquivalentScope(ManagementScope) |
确定管理范围是否与当前范围相同。 |