Share via


KernelPluginExtensions.Contains Method

Definition

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.

Applies to