ConfigurationPathType 列舉

定義

指定選取的組態路徑類型。

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

欄位

名稱 Description
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

適用於