ConfigurationPathType 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定所选配置路径的类型。
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 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈