DelegatingConfigHost.IsDefinitionAllowed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
限制或允許主機設定中的定義。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
virtual bool IsDefinitionAllowed(System::String ^ configPath, System::Configuration::ConfigurationAllowDefinition allowDefinition, System::Configuration::ConfigurationAllowExeDefinition allowExeDefinition);
public virtual bool IsDefinitionAllowed(string configPath, System.Configuration.ConfigurationAllowDefinition allowDefinition, System.Configuration.ConfigurationAllowExeDefinition allowExeDefinition);
abstract member IsDefinitionAllowed : string * System.Configuration.ConfigurationAllowDefinition * System.Configuration.ConfigurationAllowExeDefinition -> bool
override this.IsDefinitionAllowed : string * System.Configuration.ConfigurationAllowDefinition * System.Configuration.ConfigurationAllowExeDefinition -> bool
Public Overridable Function IsDefinitionAllowed (configPath As String, allowDefinition As ConfigurationAllowDefinition, allowExeDefinition As ConfigurationAllowExeDefinition) As Boolean
參數
- configPath
- String
一個字串代表設定檔的路徑。
- allowDefinition
- ConfigurationAllowDefinition
- allowExeDefinition
- ConfigurationAllowExeDefinition
傳回
true若在主機設定中成功授予或限制定義;否則,。 false