KernelPluginCollection.TryGetPlugin(String, KernelPlugin) 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 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.