Compartilhar via


ManagementConfigurationPath.PathType Propriedade

Definição

Obtém o tipo de caminho de configuração.

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

Valor da propriedade

Um dos valores de ConfigurationPathType.

Exemplos

O exemplo a seguir adiciona detalhes do ManagementConfigurationPath objeto a uma lista vinculada.

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;

}

Aplica-se a