OrganizationHierarchyPlugin.GetMyManagerNameAsync(CancellationToken) 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.
Get the name of the manager of the current user.
[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<string> GetMyManagerNameAsync(System.Threading.CancellationToken cancellationToken = default);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.GetMyManagerNameAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetMyManagerNameAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- cancellationToken
- CancellationToken
An optional CancellationToken to observe while waiting for the task to complete.
Returns
A string containing the name of the manager of the current user.
- Attributes