ManagementConfigurationPath Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a container for the configuration path of the current server, Web site, application, file, or folder. This class cannot be inherited.
public ref class ManagementConfigurationPath sealed
public sealed class ManagementConfigurationPath
type ManagementConfigurationPath = class
Public NotInheritable Class ManagementConfigurationPath
- Inheritance
-
ManagementConfigurationPath
Examples
The following example adds details of the ManagementConfigurationPath object to a linked list.
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;
}
Remarks
The Microsoft.Web.Management.Server.ManagementUnit.ConfigurationPath property exposes the current ManagementConfigurationPath object.
Properties
ApplicationPath |
Gets the application configuration path. |
FolderPath |
Gets the folder configuration path. |
PathType |
Gets the configuration path type. |
SiteName |
Gets the Web site name. |
Methods
CreateApplicationConfigurationPath(String, String) |
Creates a new application configuration path by using the specified Web site name. |
CreateApplicationConfigurationPath(String) |
Creates a new application configuration path. |
CreateFileConfigurationPath(String, String, String) |
Creates a new file configuration path by using the specified Web site name and application path. |
CreateFileConfigurationPath(String, String) |
Creates a new file configuration path by using the specified application path. |
CreateFolderConfigurationPath(String, String, String) |
Creates a new folder configuration path by using the specified Web site name and application path. |
CreateFolderConfigurationPath(String, String) |
Creates a new folder configuration path by using the specified application path. |
CreateServerConfigurationPath() |
Creates a new server configuration path. |
CreateSiteConfigurationPath(String) |
Creates a new Web site configuration path. |
GetBindingProtocols(IServiceProvider) |
Gets the current binding protocols. |
GetEffectiveConfigurationPath(ManagementScope) |
Gets the effective configuration path for an application, Web site, or server. |
GetFrameworkVersion(IServiceProvider) |
Gets the .NET Framework version for the current path type. |
GetState() | |
IsEquivalentScope(ManagementScope) |
Determines whether a management scope is the same as the current scope. |