BotAssert.ContextNotNull(ITurnContext) 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.
Checks that a context object is not null
.
public static void ContextNotNull (Microsoft.Bot.Builder.ITurnContext turnContext);
static member ContextNotNull : Microsoft.Bot.Builder.ITurnContext -> unit
Public Shared Sub ContextNotNull (turnContext As ITurnContext)
Parameters
- turnContext
- ITurnContext
The context object.
Exceptions
turnContext
is null
.