Condividi tramite


IConventionTypeBaseBuilder.CanHaveIndexerProperty Metodo

Definizione

Restituisce un valore che indica se la proprietà dell'indicizzatore specificato può essere aggiunta a questo tipo.

public bool CanHaveIndexerProperty (Type propertyType, string propertyName, bool fromDataAnnotation = false);
abstract member CanHaveIndexerProperty : Type * string * bool -> bool
Public Function CanHaveIndexerProperty (propertyType As Type, propertyName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametri

propertyType
Type

Il tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

true se la proprietà può essere aggiunta.

Si applica a