IConventionTypeBaseBuilder.CanHaveComplexIndexerProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,指出指定的複雜索引子屬性是否可以加入至這個類型。
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
如果可以加入屬性,則為 。