ManagementConfigurationPath.FolderPath 属性

定义

获取文件夹配置路径。

public:
 property System::String ^ FolderPath { System::String ^ get(); };
public string FolderPath { get; }
member this.FolderPath : string
Public ReadOnly Property FolderPath As String

属性值

文件夹配置路径。

示例

以下示例将 对象的详细信息 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;

}

注解

文件夹配置路径在 方法中 CreateFolderConfigurationPath 初始化。

适用于