Share via


ManagementConfigurationPath.PathType Property

Definition

Gets the configuration path type.

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

Property Value

One of the ConfigurationPathType values.

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;

}

Applies to