UserNames Property
- Namespace
TXTextControl.Web
- Package
- None: the TX Text Control .NET Server setup installs it, for .NET Framework.
- Assembly
TXTextControl.Web. dll
Description
Gets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.
Syntax
public string[] UserNames { get; set; }Public Property UserNames() As String()Examples
In the current ASP.NET Core integration, UserNames is configured through TextControlSettings. The following example sets it while creating the editor configuration.
textControlSettings.UserNames = new string[] { "Quarterly report" };
if (textControlSettings.UserNames != null)
{
Console.WriteLine("User Names is available for Text Control Settings.");
}textControlSettings.UserNames = New String() { "Quarterly report" }
If textControlSettings.UserNames IsNot Nothing Then
Console.WriteLine("User Names is available for Text Control Settings.")
End If