다음을 통해 공유


ManagementConfigurationPath.PathType 속성

정의

구성 경로 형식을 가져옵니다.

public:
 property Microsoft::Web::Management::Server::ConfigurationPathType PathType { Microsoft::Web::Management::Server::ConfigurationPathType get(); };
public Microsoft.Web.Management.Server.ConfigurationPathType PathType { get; }
member this.PathType : Microsoft.Web.Management.Server.ConfigurationPathType
Public ReadOnly Property PathType As ConfigurationPathType

속성 값

ConfigurationPathType 값 중 하나입니다.

예제

다음 예제에서는 개체의 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;

}

적용 대상