Click or drag to resize

IBrowserConvertJsNameHandler Property

Gets or sets a handler that is used for the JavaScript name converting. Implement this handler to have control of how the names are converted when binding or executing JavaScript.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.22.0
Syntax
C#
IHandler<ConvertJsNameParameters, ConvertJsNameResponse> ConvertJsNameHandler { get; set; }

Property Value

Type: IHandlerConvertJsNameParameters, ConvertJsNameResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

The handler should be configured before registering .NET objects on the JavaScript side.

The ConvertJsNameParameters object contains information about the MemberInfo of the .NET object.

Use the NoConversion method to use the member name as is.

Use the CamelCase method to convert the first letter of the name to the lower case.

Use the PascalCase method to convert the first letter of the name to the upper case.

Use the ConvertTo(String) method for customizing the name.

See Also