KernelPluginExtensions.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether the plugins collection contains a plugin with the specified name.
public static bool Contains (this Microsoft.SemanticKernel.IReadOnlyKernelPluginCollection plugins, string pluginName);
static member Contains : Microsoft.SemanticKernel.IReadOnlyKernelPluginCollection * string -> bool
<Extension()>
Public Function Contains (plugins As IReadOnlyKernelPluginCollection, pluginName As String) As Boolean
Parameters
- plugins
- IReadOnlyKernelPluginCollection
The plugins collections.
- pluginName
- String
The name of the plugin.
Returns
true if the plugins contains a plugin with the specified name; otherwise, false.