Compartir a través de


ManagementConfigurationPath.ApplicationPath Propiedad

Definición

Obtiene la ruta de acceso de configuración de la aplicación.

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

Valor de propiedad

Ruta de acceso de configuración de la aplicación.

Ejemplos

En el ejemplo siguiente se agregan detalles del ManagementConfigurationPath objeto a una 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;

}

Comentarios

La ruta de acceso de configuración de la aplicación se inicializa en el CreateApplicationConfigurationPath método .

Se aplica a