ManagementConfigurationPath Klasse
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.
Definiert einen Container für den Konfigurationspfad des aktuellen Servers, der Website, der Anwendung, der Datei oder des Ordners. Diese Klasse kann nicht vererbt werden.
public ref class ManagementConfigurationPath sealed
public sealed class ManagementConfigurationPath
type ManagementConfigurationPath = class
Public NotInheritable Class ManagementConfigurationPath
- Vererbung
-
ManagementConfigurationPath
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
Die Microsoft.Web.Management.Server.ManagementUnit.ConfigurationPath -Eigenschaft macht das aktuelle ManagementConfigurationPath Objekt verfügbar.
Eigenschaften
ApplicationPath |
Ruft den Anwendungskonfigurationspfad ab. |
FolderPath |
Ruft den Ordnerkonfigurationspfad ab. |
PathType |
Ruft den Konfigurationspfadtyp ab. |
SiteName |
Ruft den Namen der Website ab. |
Methoden
CreateApplicationConfigurationPath(String) |
Erstellt einen neuen Anwendungskonfigurationspfad. |
CreateApplicationConfigurationPath(String, String) |
Erstellt einen neuen Anwendungskonfigurationspfad unter Verwendung des angegebenen Websitenamens. |
CreateFileConfigurationPath(String, String) |
Erstellt mithilfe des angegebenen Anwendungspfads einen neuen Dateikonfigurationspfad. |
CreateFileConfigurationPath(String, String, String) |
Erstellt einen neuen Dateikonfigurationspfad unter Verwendung des angegebenen Websitenamens und Anwendungspfads. |
CreateFolderConfigurationPath(String, String) |
Erstellt mithilfe des angegebenen Anwendungspfads einen neuen Ordnerkonfigurationspfad. |
CreateFolderConfigurationPath(String, String, String) |
Erstellt einen neuen Ordnerkonfigurationspfad unter Verwendung des angegebenen Websitenamens und Anwendungspfads. |
CreateServerConfigurationPath() |
Erstellt einen neuen Serverkonfigurationspfad. |
CreateSiteConfigurationPath(String) |
Erstellt einen neuen Konfigurationspfad für die Website. |
GetBindingProtocols(IServiceProvider) |
Ruft die aktuellen Bindungsprotokolle ab. |
GetEffectiveConfigurationPath(ManagementScope) |
Ruft den effektiven Konfigurationspfad für eine Anwendung, Website oder einen Server ab. |
GetFrameworkVersion(IServiceProvider) |
Ruft die .NET Framework Version für den aktuellen Pfadtyp ab. |
GetState() |
Definiert einen Container für den Konfigurationspfad des aktuellen Servers, der Website, der Anwendung, der Datei oder des Ordners. Diese Klasse kann nicht vererbt werden. |
IsEquivalentScope(ManagementScope) |
Bestimmt, ob ein Verwaltungsbereich mit dem aktuellen Bereich identisch ist. |