ManagementConfigurationPath.ApplicationPath Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den Anwendungskonfigurationspfad ab.
public:
property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String
Eigenschaftswert
Der Anwendungskonfigurationspfad.
Beispiele
Im folgenden Beispiel werden Details des ManagementConfigurationPath -Objekts zu einer verknüpften Liste hinzugefügt.
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;
}
Hinweise
Der Anwendungskonfigurationspfad wird in der CreateApplicationConfigurationPath -Methode initialisiert.