Share via


IFormValueMapper.CanMap(Type, String, String) Method

Definition

Determines whether the specified value type can be mapped.

public bool CanMap (Type valueType, string scopeName, string? formName);
abstract member CanMap : Type * string * string -> bool
Public Function CanMap (valueType As Type, scopeName As String, formName As String) As Boolean

Parameters

valueType
Type

The Type for the value to map.

scopeName
String

The name of the current FormMappingScope.

formName
String

The form name, if values should only be provided for that form, or null to allow values from any form within the scope.

Returns

true if the value type can be mapped; otherwise, false.

Applies to