IInternalConfigHost.IsDefinitionAllowed 方法

定义

确定是否允许应用程序配置对象具有不同的 Type 定义。

public:
 bool IsDefinitionAllowed(System::String ^ configPath, System::Configuration::ConfigurationAllowDefinition allowDefinition, System::Configuration::ConfigurationAllowExeDefinition allowExeDefinition);
public bool IsDefinitionAllowed (string configPath, System.Configuration.ConfigurationAllowDefinition allowDefinition, System.Configuration.ConfigurationAllowExeDefinition allowExeDefinition);
abstract member IsDefinitionAllowed : string * System.Configuration.ConfigurationAllowDefinition * System.Configuration.ConfigurationAllowExeDefinition -> bool
Public Function IsDefinitionAllowed (configPath As String, allowDefinition As ConfigurationAllowDefinition, allowExeDefinition As ConfigurationAllowExeDefinition) As Boolean

参数

configPath
String

表示应用程序配置文件路径的字符串。

返回

如果允许应用程序配置对象具有不同的 Type 定义,则为 true;否则为 false

适用于