共用方式為


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

適用於