IConventionTypeBaseBuilder.CanHaveComplexIndexerProperty 方法

定義

傳回值,指出指定的複雜索引子屬性是否可以加入至這個類型。

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

參數

propertyType
Type

屬性將保留的數值型別。

propertyName
String

要設定的屬性名稱。

complexType
Type

目標複雜類型。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

true 如果可以加入屬性,則為 。

適用於