Share via


IConventionPropertyBaseBuilder.CanSetField Method

Definition

Overloads

CanSetField(FieldInfo, Boolean)

Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.

CanSetField(String, Boolean)

Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.

CanSetField(FieldInfo, Boolean)

Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.

public bool CanSetField (System.Reflection.FieldInfo fieldInfo, bool fromDataAnnotation = false);
public bool CanSetField (System.Reflection.FieldInfo? fieldInfo, bool fromDataAnnotation = false);
abstract member CanSetField : System.Reflection.FieldInfo * bool -> bool
Public Function CanSetField (fieldInfo As FieldInfo, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

fieldInfo
FieldInfo

The field.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the backing field can be set for this property-like object.

Applies to

CanSetField(String, Boolean)

Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.

public bool CanSetField (string fieldName, bool fromDataAnnotation = false);
public bool CanSetField (string? fieldName, bool fromDataAnnotation = false);
abstract member CanSetField : string * bool -> bool
Public Function CanSetField (fieldName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

fieldName
String

The field name.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the backing field can be set for this property-like object.

Applies to