APIRoute Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Determines the API directory in the MVC project in which to find the WebSocket and print handlers. The default value is "api/".
Syntax
public string APIRoute { get; set; }Public Property APIRoute As StringExamples
In the current ASP.NET Core integration, APIRoute is configured through TextControlSettings. The following example sets it while creating the editor configuration.
textControlSettings.APIRoute = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.APIRoute))
{
Console.WriteLine($"APIRoute: {textControlSettings.APIRoute}");
}textControlSettings.APIRoute = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.APIRoute) Then
Console.WriteLine($"APIRoute: {textControlSettings.APIRoute}")
End If