Share via


KernelPluginCollection.TryGetPlugin(String, KernelPlugin) Method

Definition

Gets a plugin from the collection by name.

public bool TryGetPlugin (string name, out Microsoft.SemanticKernel.KernelPlugin? plugin);
abstract member TryGetPlugin : string * KernelPlugin -> bool
override this.TryGetPlugin : string * KernelPlugin -> bool
Public Function TryGetPlugin (name As String, ByRef plugin As KernelPlugin) As Boolean

Parameters

name
String

The name of the plugin.

plugin
KernelPlugin

The plugin if found in the collection.

Returns

true if the collection contains the plugin; otherwise, false.

Implements

Applies to