Export (0) Print
Expand All

ManagementConfigurationPath Class

IIS 7.0

Defines a container for the configuration path of the current server, Web site, application, file, or folder. This class cannot be inherited.

System..::..Object
  Microsoft.Web.Management.Server..::..ManagementConfigurationPath

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public sealed class ManagementConfigurationPath

The ManagementConfigurationPath type exposes the following members.

  NameDescription
Public propertyApplicationPathGets the application configuration path.
Public propertyFolderPathGets the folder configuration path.
Public propertyPathTypeGets the configuration path type.
Public propertySiteNameGets the Web site name.
Top

  NameDescription
Public methodStatic memberCreateApplicationConfigurationPath(String)Creates a new application configuration path.
Public methodStatic memberCreateApplicationConfigurationPath(String, String)Creates a new application configuration path by using the specified Web site name.
Public methodStatic memberCreateFileConfigurationPath(String, String)Creates a new file configuration path by using the specified application path.
Public methodStatic memberCreateFileConfigurationPath(String, String, String)Creates a new file configuration path by using the specified Web site name and application path.
Public methodStatic memberCreateFolderConfigurationPath(String, String)Creates a new folder configuration path by using the specified application path.
Public methodStatic memberCreateFolderConfigurationPath(String, String, String)Creates a new folder configuration path by using the specified Web site name and application path.
Public methodStatic memberCreateServerConfigurationPathCreates a new server configuration path.
Public methodStatic memberCreateSiteConfigurationPathCreates a new Web site configuration path.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBindingProtocolsGets the current binding protocols.
Public methodGetEffectiveConfigurationPathGets the effective configuration path for an application, Web site, or server.
Public methodGetFrameworkVersionGets the .NET Framework version for the current path type.
Public methodGetHashCode (Inherited from Object.)
Public methodGetStateReturns a string that contains the current path type, site name, application path, and folder path.
Public methodGetType (Inherited from Object.)
Public methodIsEquivalentScopeDetermines whether a management scope is the same as the current scope.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

The ManagementUnit..::..ConfigurationPath property exposes the current ManagementConfigurationPath object.

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;

}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft