Share via


IConventionPropertyBuilder.CanSetSentinel(Object, Boolean) Method

Definition

Returns a value indicating whether the sentinel can be set for this property from the current configuration source.

public bool CanSetSentinel (object? sentinel, bool fromDataAnnotation = false);
abstract member CanSetSentinel : obj * bool -> bool
Public Function CanSetSentinel (sentinel As Object, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

sentinel
Object

The sentinel value.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the sentinel can be set for this property.

Applies to