ConfigurationPathType Enum
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.
Specifies the type of configuration path that is selected.
public enum class ConfigurationPathType
public enum ConfigurationPathType
type ConfigurationPathType =
Public Enum ConfigurationPathType
- Inheritance
-
ConfigurationPathType
Fields
Name | Value | Description |
---|---|---|
Server | 0 | A server. |
Site | 1 | A site. |
Application | 2 | An application. |
Folder | 3 | An application folder. |
File | 4 | A file in an application. |
Examples
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();
}
}
Remarks
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.