Condividi tramite


IConventionTypeBaseBuilder.CanHaveComplexIndexerProperty Metodo

Definizione

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

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

Parametri

propertyType
Type

Tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

complexType
Type

Tipo complesso di destinazione.

fromDataAnnotation
Boolean

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

Restituisce

true se la proprietà può essere aggiunta.

Si applica a