Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
.NET Framework Class Library
ConfigurationPathType Enumeration

Specifies the type of configuration path that is selected.

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Visual Basic (Declaration)
Public Enumeration ConfigurationPathType
Visual Basic (Usage)
Dim instance As ConfigurationPathType
C#
public enum ConfigurationPathType
Visual C++
public enum class ConfigurationPathType
JScript
public enum ConfigurationPathType
Member nameDescription
ServerA server.
SiteA site.
ApplicationAn application.
FolderAn application folder.
FileA file in an application.

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.

Visual Basic
'' Called when an object in the hierarchy pane is activated.

Protected Overrides Sub OnActivated(ByVal initialActivation As Boolean)
    MyBase.OnActivated(initialActivation)
    If initialActivation Then
        Me._serviceProxy = DirectCast(MyBase.Connection.CreateProxy(MyBase.Module, GetType(DemoModuleServiceProxy)), DemoModuleServiceProxy)
        '' Display the Configuration Path Type enumertion.
        MessageBox.Show(("The selected object in the hierarchy pane is a " & MyBase.Connection.ConfigurationPath.PathType))
        Me.Refresh()
    End If
End Sub
C#
// 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();
    }
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker