InteractionResult Methods
ClassMethods2 members
Provides a set of static methods for the
Hosting.InteractionResult`1. Creates an
Hosting.InteractionResult`1 indicating a canceled interaction. public static class InteractionResult{ public static InteractionResult<T> Cancel<T>( T? data = default(T?)) { // ... }}Parameters
dataT?optionalOptional data to include with the interaction result. Defaults to the default value of type T if not provided.Returns
InteractionResult<T> An Hosting.InteractionResult`1 with the canceled flag set to true and containing the specified data. Creates a new
Hosting.InteractionResult`1 with the specified result and a flag indicating that the interaction was not canceled. public static class InteractionResult{ public static InteractionResult<T> Ok<T>( T result) { // ... }}Parameters
resultTThe data returned from the interaction.Returns
InteractionResult<T>The new Hosting.InteractionResult`1.