語言

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

一個字串代表應用程式設定檔的路徑。

傳回

true 若允許對應用配置物件有不同 Type 定義;否則, false。

適用於