Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ConfigurationPathType Enumeration

IIS 7.0

Specifies the type of configuration path that is selected.

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

You can use the enumeration values to determine the type of connection that is indicated by the selected configuration path type. You can access the enumeration values from the PathType property.

The following example obtains the ConfigurationPathType enumeration value for the selected object in the Connection pane.

// Called when an object in the hierarchy pane is activated.
protected override void OnActivated(bool initialActivation)
{
    base.OnActivated(initialActivation);
    if (initialActivation)
    {
        _serviceProxy = (DemoModuleServiceProxy)Connection.CreateProxy(
            Module, typeof(DemoModuleServiceProxy));
        // Display the Configuration Path Type enumertion.
        MessageBox.Show("The selected object in the hierarchy pane is a " + 
            Connection.ConfigurationPath.PathType);
        Refresh();
    }
}


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.