DelegatingConfigHost.IsDefinitionAllowed Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Begränsar eller tillåter definitioner i värdkonfigurationen.
Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.
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
Parametrar
- configPath
- String
En sträng som representerar sökvägen till en konfigurationsfil.
- allowDefinition
- ConfigurationAllowDefinition
Objektet ConfigurationAllowDefinition.
- allowExeDefinition
- ConfigurationAllowExeDefinition
Objektet ConfigurationAllowExeDefinition.
Returer
trueom beviljandet eller begränsningen av definitioner i värdkonfigurationen lyckades. annars . false