ConfigurationPathType 枚举

定义

指定所选配置路径的类型。

public enum class ConfigurationPathType
public enum ConfigurationPathType
type ConfigurationPathType = 
Public Enum ConfigurationPathType
继承
ConfigurationPathType

字段

Application 2

应用程序。

File 4

应用程序中的文件。

Folder 3

应用程序文件夹。

Server 0

服务器。

Site 1

站点。

示例

以下示例获取“ConfigurationPathType连接”窗格中所选对象的枚举值。

// 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();
    }
}

注解

可以使用枚举值来确定所选配置路径类型指示的连接类型。 可以从 属性访问枚举值 PathType

适用于